summaryrefslogtreecommitdiff
path: root/python/vyos/ifconfig
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-02-22 18:17:36 +0100
committerChristian Poessinger <christian@poessinger.com>2021-02-22 18:18:43 +0100
commite960935dcb198ec1ae202695cc0cb2f92aa9fd52 (patch)
tree5cf8edce11563260234c6afb56f36dd7dd9aa2e9 /python/vyos/ifconfig
parent121ca131f662fe7a09c24f236ffe572eaecf0710 (diff)
downloadvyos-1x-e960935dcb198ec1ae202695cc0cb2f92aa9fd52.tar.gz
vyos-1x-e960935dcb198ec1ae202695cc0cb2f92aa9fd52.zip
vyos.ifconfig: extend debug option to print input dict
(cherry picked from commit a3e11ace758f447ddbbabd31d4903b3f71baa0b8)
Diffstat (limited to 'python/vyos/ifconfig')
-rw-r--r--python/vyos/ifconfig/interface.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/vyos/ifconfig/interface.py b/python/vyos/ifconfig/interface.py
index 981e899e1..fea411319 100644
--- a/python/vyos/ifconfig/interface.py
+++ b/python/vyos/ifconfig/interface.py
@@ -1079,6 +1079,10 @@ class Interface(Control):
interface setup code and provide a single point of entry when workin
on any interface. """
+ if self.debug:
+ import pprint
+ pprint.pprint(config)
+
# Cache the configuration - it will be reused inside e.g. DHCP handler
# XXX: maybe pass the option via __init__ in the future and rename this
# method to apply()?