summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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):
"""