diff options
author | jack9603301 <jack9603301@163.com> | 2020-12-10 23:52:17 +0800 |
---|---|---|
committer | jack9603301 <jack9603301@163.com> | 2020-12-13 02:12:45 +0800 |
commit | 934392a7f30b6a043a3de54c882453ddbea117ae (patch) | |
tree | f98b972de99c6b9d813e09fcdfae134d60a44991 /python/vyos/ifconfig | |
parent | c4048b2047f693436b38196632cddf65beb67a86 (diff) | |
download | vyos-1x-934392a7f30b6a043a3de54c882453ddbea117ae.tar.gz vyos-1x-934392a7f30b6a043a3de54c882453ddbea117ae.zip |
interfaces: T3114: Remove some redundant code
Diffstat (limited to 'python/vyos/ifconfig')
-rw-r--r-- | python/vyos/ifconfig/interface.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/python/vyos/ifconfig/interface.py b/python/vyos/ifconfig/interface.py index eda3fadd6..e11c04209 100644 --- a/python/vyos/ifconfig/interface.py +++ b/python/vyos/ifconfig/interface.py @@ -950,10 +950,6 @@ class Interface(Control): if int(vlan_id) not in vlan_bridge_ids: cmd = f'bridge vlan add dev {bridge} vid {vlan_id} self' self._cmd(cmd) - else: - if vlan not in vlan_bridge_ids: - cmd = f'bridge vlan add dev {bridge} vid {vlan} self' - self._cmd(cmd) # enable/disable Vlan Filter Section.klass(bridge)(bridge, create=True).set_vlan_filter(vlan_filter) |