diff options
author | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-03-23 11:50:22 +0000 |
---|---|---|
committer | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-03-23 11:50:22 +0000 |
commit | 193d0f416807b3eb5980dcf209e93774282b85f3 (patch) | |
tree | 1e7a2597872b04bc8e5af69d32a33b8b7ce4c4e8 /src/conf_mode/interfaces-bridge.py | |
parent | f71a7461e44a98e862810bed3d0b9d280ee5dae0 (diff) | |
download | vyos-1x-193d0f416807b3eb5980dcf209e93774282b85f3.tar.gz vyos-1x-193d0f416807b3eb5980dcf209e93774282b85f3.zip |
ifconfig: T31: convert all interface to set_vrf api
Diffstat (limited to 'src/conf_mode/interfaces-bridge.py')
-rwxr-xr-x | src/conf_mode/interfaces-bridge.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/conf_mode/interfaces-bridge.py b/src/conf_mode/interfaces-bridge.py index f189ce36d..f8f20bf5c 100755 --- a/src/conf_mode/interfaces-bridge.py +++ b/src/conf_mode/interfaces-bridge.py @@ -295,11 +295,8 @@ def apply(bridge): # store DHCPv6 config dictionary - used later on when addresses are aquired br.set_dhcpv6_options(opt) - # assign to VRF - if bridge['vrf']: - br.add_vrf(bridge['vrf']) - else: - br.del_vrf(bridge['vrf']) + # assign/remove VRF + br.set_vrf(bridge['vrf']) # Change interface MAC address if bridge['mac']: |