diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-02-22 18:17:36 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-02-22 18:18:43 +0100 |
commit | e960935dcb198ec1ae202695cc0cb2f92aa9fd52 (patch) | |
tree | 5cf8edce11563260234c6afb56f36dd7dd9aa2e9 /python/vyos/ifconfig | |
parent | 121ca131f662fe7a09c24f236ffe572eaecf0710 (diff) | |
download | vyos-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.py | 4 |
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()? |