From e960935dcb198ec1ae202695cc0cb2f92aa9fd52 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 22 Feb 2021 18:17:36 +0100 Subject: vyos.ifconfig: extend debug option to print input dict (cherry picked from commit a3e11ace758f447ddbbabd31d4903b3f71baa0b8) --- python/vyos/ifconfig/interface.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'python') 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()? -- cgit v1.2.3