From a061852a5970ec2dbbc7fd81d940e211baeedadf Mon Sep 17 00:00:00 2001 From: Pranav Jerry Date: Tue, 28 Sep 2021 15:58:31 +0530 Subject: [PATCH] commented out a line causing trouble And added a bit more logging --- naxalnet/__init__.py | 2 +- naxalnet/scripts.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/naxalnet/__init__.py b/naxalnet/__init__.py index 27941fb..03949a2 100644 --- a/naxalnet/__init__.py +++ b/naxalnet/__init__.py @@ -35,4 +35,4 @@ See README.md for documentation. # # In case you forgot to change the version, skip the number # and put the next number in the next commit. -__version__ = "0.4.0a5.dev5" +__version__ = "0.4.0a5.dev6" diff --git a/naxalnet/scripts.py b/naxalnet/scripts.py index 3cd6561..27b5389 100644 --- a/naxalnet/scripts.py +++ b/naxalnet/scripts.py @@ -200,10 +200,13 @@ def cleanup(): logger.info("Exiting gracefully") networkd.remove_all_configs() for i in USED_DEVICES: + logger.debug("Turning off %s", i) device = Device(i) - device.set_mode("station") + # device.set_mode("station") device.power_off() + logger.debug("Deleting interface %s", args.batman_device) networkd.delete_interface(args.batman_device) + logger.debug("Deleting interface %s", args.bridge_device) networkd.delete_interface(args.bridge_device)