summaryrefslogtreecommitdiff
path: root/python/vyos
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2020-11-13 12:31:46 +0700
committerGitHub <noreply@github.com>2020-11-13 12:31:46 +0700
commit35bc7d9d0fc1b3fe2dd87915a65634ef66d7a3b9 (patch)
tree415c24e58aaf564ce2cac9522c5ad46384b1bca1 /python/vyos
parentf9e0fb6bffd41c143ff5454c3b73cca4a588ca86 (diff)
parentbbfa1efcda80e904188413bf815f2eb428cee0c4 (diff)
downloadvyos-1x-35bc7d9d0fc1b3fe2dd87915a65634ef66d7a3b9.tar.gz
vyos-1x-35bc7d9d0fc1b3fe2dd87915a65634ef66d7a3b9.zip
Merge pull request #601 from jack9603301/T3042
bridge: T3042: Fix VLAN filter invalid work
Diffstat (limited to 'python/vyos')
-rw-r--r--python/vyos/ifconfig/bridge.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/python/vyos/ifconfig/bridge.py b/python/vyos/ifconfig/bridge.py
index 772db3543..7eac9b886 100644
--- a/python/vyos/ifconfig/bridge.py
+++ b/python/vyos/ifconfig/bridge.py
@@ -317,6 +317,13 @@ class BridgeIf(Interface):
cmd = f'bridge vlan add dev {interface} vid {vlan} master'
self._cmd(cmd)
+
+ vif = dict_search('vif', config)
+ if vif:
+ for vlan_id,vif_config in vif.items():
+ cmd = f'bridge vlan add dev {ifname} vid {vlan_id} self master'
+ self._cmd(cmd)
+
# enable/disable Vlan Filter
self.set_vlan_filter(vlan_filter)