summaryrefslogtreecommitdiff
path: root/python/vyos/ifconfig/dhcp.py
diff options
context:
space:
mode:
authorThomas Mangin <thomas.mangin@exa.net.uk>2020-03-31 16:59:33 +0100
committerThomas Mangin <thomas.mangin@exa.net.uk>2020-03-31 16:59:55 +0100
commit05e79a4bb2137ee3ea563ced7f64b033c41eb438 (patch)
tree4569cd88efc01a1473e90dfd90b271ac54e9f711 /python/vyos/ifconfig/dhcp.py
parent458ccfc2f0fe46d399d2412af60d8ade26b57f65 (diff)
downloadvyos-1x-05e79a4bb2137ee3ea563ced7f64b033c41eb438.tar.gz
vyos-1x-05e79a4bb2137ee3ea563ced7f64b033c41eb438.zip
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.
Diffstat (limited to 'python/vyos/ifconfig/dhcp.py')
-rw-r--r--python/vyos/ifconfig/dhcp.py4
1 files changed, 3 insertions, 1 deletions
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: {