From 05e79a4bb2137ee3ea563ced7f64b033c41eb438 Mon Sep 17 00:00:00 2001 From: Thomas Mangin Date: Tue, 31 Mar 2020 16:59:33 +0100 Subject: ifconfig: T2057: allow to disable interface debugging In order to be able to use the interface class with operational mode, these commands must not log as it would otherwise mess with the output on the screen. --- python/vyos/ifconfig/dhcp.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'python/vyos/ifconfig/dhcp.py') diff --git a/python/vyos/ifconfig/dhcp.py b/python/vyos/ifconfig/dhcp.py index 8d3653433..8ec8263b5 100644 --- a/python/vyos/ifconfig/dhcp.py +++ b/python/vyos/ifconfig/dhcp.py @@ -50,7 +50,9 @@ interface "{{ intf }}" { class DHCP (Control): client_base = r'/var/lib/dhcp/dhclient_' - def __init__ (self, ifname): + def __init__ (self, ifname, **kargs): + super().__init__(**kargs) + # per interface DHCP config files self._dhcp = { 4: { -- cgit v1.2.3