aboutsummaryrefslogtreecommitdiff
path: root/util.py
diff options
context:
space:
mode:
authorSteve McIntyre <steve.mcintyre@linaro.org>2015-07-14 15:26:05 +0100
committerSteve McIntyre <steve.mcintyre@linaro.org>2015-07-14 15:26:05 +0100
commit0f38f0efdfa148dde056c3042a0eac45d273e86a (patch)
tree98ebd5c8637cedb3f8f68a35c9a71f6bc1aa9cfe /util.py
parentc9e72e8eb84537e799b9d48676ce1b64e69e8f75 (diff)
Pass through the switch debug setting when starting up a switch driver
Change-Id: Ie6ed4574ca8cb534feb3943905ac4e446d5dc999
Diffstat (limited to 'util.py')
-rw-r--r--util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.py b/util.py
index e479db9..6bad6fb 100644
--- a/util.py
+++ b/util.py
@@ -11,7 +11,7 @@ class VlanUtil:
logging.debug("Driver: %s", driver)
module = __import__("drivers.%s" % driver, fromlist=[driver])
class_ = getattr(module, driver)
- return class_(switch_name)
+ return class_(switch_name, debug = config.switches[switch_name].debug)
def probe_switches(self, state):
config = state.config