diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-03-23 12:57:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-23 12:57:34 +0100 |
commit | 52e20fa562968dcfd7b524031f0cad2b6f4fff57 (patch) | |
tree | 8adba1fa5916b47a65b1b77f4b490e0b1fe6d1ae /python/vyos/ifconfig_vlan.py | |
parent | cefed7ae3fbbb93142051633ff00d3a9e19889c0 (diff) | |
parent | 193d0f416807b3eb5980dcf209e93774282b85f3 (diff) | |
download | vyos-1x-52e20fa562968dcfd7b524031f0cad2b6f4fff57.tar.gz vyos-1x-52e20fa562968dcfd7b524031f0cad2b6f4fff57.zip |
Merge pull request #258 from thomas-mangin/31-vrf
tunnel: T31: fix vrf deletion, add support for vrf on tunnels
Diffstat (limited to 'python/vyos/ifconfig_vlan.py')
-rw-r--r-- | python/vyos/ifconfig_vlan.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/python/vyos/ifconfig_vlan.py b/python/vyos/ifconfig_vlan.py index 1d57283ac..fe94a5af4 100644 --- a/python/vyos/ifconfig_vlan.py +++ b/python/vyos/ifconfig_vlan.py @@ -68,11 +68,8 @@ def apply_vlan_config(vlan, config): # Maximum Transmission Unit (MTU) vlan.set_mtu(config['mtu']) - # assign to VRF - if config['vrf']: - vlan.add_vrf(config['vrf']) - else: - vlan.del_vrf(config['vrf']) + # assign/remove VRF + vlan.set_vrf(config['vrf']) # Change VLAN interface MAC address if config['mac']: |