From 078671898eacb0ef4ccec7c13db77c1359597c1c Mon Sep 17 00:00:00 2001 From: jack9603301 Date: Sat, 12 Dec 2020 00:42:08 +0800 Subject: interfaces: T3114: When the VLAN aware option is not detected, the setting of `bridge` should not be overwritten --- python/vyos/ifconfig/interface.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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): """ -- cgit v1.2.3