summaryrefslogtreecommitdiff
path: root/python/vyos/ifconfig/interface.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-07-24 17:15:55 +0200
committerChristian Poessinger <christian@poessinger.com>2020-07-25 15:36:44 +0200
commit3998e140d13d99fde0c814816f4cf7533a38a61a (patch)
tree0aac89fc86eb9bc4d4766b52985aecbb96bb4079 /python/vyos/ifconfig/interface.py
parent3ee6030b98f8afdbc3a606ce458e11323e59b23c (diff)
downloadvyos-1x-3998e140d13d99fde0c814816f4cf7533a38a61a.tar.gz
vyos-1x-3998e140d13d99fde0c814816f4cf7533a38a61a.zip
ifconfig: T2653: implement update() in derived classes for admin up/down
Every derived class must implement update() to set the interfaces admin up/down state. This is required to prevend extensive link flaps when e.g. reconfiguring bond interfaces.
Diffstat (limited to 'python/vyos/ifconfig/interface.py')
-rw-r--r--python/vyos/ifconfig/interface.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/python/vyos/ifconfig/interface.py b/python/vyos/ifconfig/interface.py
index 2d2017b7a..5942904b5 100644
--- a/python/vyos/ifconfig/interface.py
+++ b/python/vyos/ifconfig/interface.py
@@ -951,6 +951,3 @@ class Interface(Control):
bridge = config.get('is_bridge_member')
self.add_to_bridge(bridge)
- # Interface administrative state
- state = 'down' if 'disable' in config else 'up'
- self.set_admin_state(state)