summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-02-01 19:43:40 +0100
committerChristian Poessinger <christian@poessinger.com>2020-02-01 19:43:40 +0100
commit47a35b19a6edd7f968751558bef6ce4701b5ebcc (patch)
tree42eb5bd928709b47bc663f8ca919106a400d8a65 /python
parentfb7c8f0965b0060e9e5ba4fadf9260a9b5ba2894 (diff)
downloadvyos-1x-47a35b19a6edd7f968751558bef6ce4701b5ebcc.tar.gz
vyos-1x-47a35b19a6edd7f968751558bef6ce4701b5ebcc.zip
Revert "ifconfig: T2002: only admin up interfaces if parent interface is up"
This reverts commit 4a4e2b6386b4c036bbf4486a8a7ac7002d08158b.
Diffstat (limited to 'python')
-rw-r--r--python/vyos/ifconfig.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/python/vyos/ifconfig.py b/python/vyos/ifconfig.py
index 12ab4548d..90b8fc169 100644
--- a/python/vyos/ifconfig.py
+++ b/python/vyos/ifconfig.py
@@ -1060,17 +1060,6 @@ class VLANIf(Interface):
super().remove()
- def set_state(self, state):
- """
- Change individual VLAN interface state.
-
- It makes only sense to change the state of an individual VLAN if the
- parent interface is up
- """
- parent_state = self.get_state()
- if parent_state == 'up':
- super().set_state(state)
-
def add_vlan(self, vlan_id, ethertype='', ingress_qos='', egress_qos=''):
"""
A virtual LAN (VLAN) is any broadcast domain that is partitioned and