summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjack9603301 <jack9603301@163.com>2020-12-12 00:42:08 +0800
committerjack9603301 <jack9603301@163.com>2020-12-13 02:12:47 +0800
commit078671898eacb0ef4ccec7c13db77c1359597c1c (patch)
tree7a12838804e05d1db2ed687508786c3624d003f3
parent7f2b4a8ba9b963399c0b94c6504d29168b79a1ab (diff)
downloadvyos-1x-078671898eacb0ef4ccec7c13db77c1359597c1c.tar.gz
vyos-1x-078671898eacb0ef4ccec7c13db77c1359597c1c.zip
interfaces: T3114: When the VLAN aware option is not detected, the setting of `bridge` should not be overwritten
-rw-r--r--python/vyos/ifconfig/interface.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/vyos/ifconfig/interface.py b/python/vyos/ifconfig/interface.py
index 699896cb2..eba3f3b99 100644
--- a/python/vyos/ifconfig/interface.py
+++ b/python/vyos/ifconfig/interface.py
@@ -948,7 +948,9 @@ class Interface(Control):
self._cmd(cmd)
# enable/disable Vlan Filter
- Section.klass(bridge)(bridge, create=True).set_vlan_filter(vlan_filter)
+ # When the VLAN aware option is not detected, the setting of `bridge` should not be overwritten
+ if vlan_filter:
+ Section.klass(bridge)(bridge, create=True).set_vlan_filter(vlan_filter)
def set_dhcp(self, enable):
"""