diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-08-05 23:47:58 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-08-06 18:54:34 +0200 |
commit | d77709252de54757d3f3e76ce6c52492ba967488 (patch) | |
tree | d6ac85985fccd6c0cd3162768efb2a18f9c10206 /src/conf_mode/vrf.py | |
parent | ecfbeb7fa3b1d170330e50352002d702535e66b0 (diff) | |
download | vyos-1x-d77709252de54757d3f3e76ce6c52492ba967488.tar.gz vyos-1x-d77709252de54757d3f3e76ce6c52492ba967488.zip |
frr: T3694: temporary disable VRF VNI assignment
Somehow we hit a priority inversion here as we need to remove the VRF assigned
VNI before we can remove a BGP bound VRF instance. Maybe move this to an
individual helper script that set's up the VNI for the given VRF after any
routing protocol (in our case this was triggered by running "make testc" when
building an ISO image by the bgp-rpki config).
Diffstat (limited to 'src/conf_mode/vrf.py')
-rwxr-xr-x | src/conf_mode/vrf.py | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/src/conf_mode/vrf.py b/src/conf_mode/vrf.py index 1fd8c134d..c1cfc1dcb 100755 --- a/src/conf_mode/vrf.py +++ b/src/conf_mode/vrf.py @@ -242,15 +242,20 @@ def apply(vrf): if tmp == 0: cmd('nft delete table inet vrf_zones') - # add configuration to FRR - frr_cfg = frr.FRRConfig() - frr_cfg.load_configuration(frr_daemon) - frr_cfg.modify_section(f'^vrf [a-zA-Z-]*$', '') - frr_cfg.add_before(r'(interface .*|line vty)', vrf['new_frr_config']) - frr_cfg.commit_configuration(frr_daemon) - - # Save configuration to /run/frr/config/frr.conf - frr.save_configuration() + # T3694: Somehow we hit a priority inversion here as we need to remove the + # VRF assigned VNI before we can remove a BGP bound VRF instance. Maybe + # move this to an individual helper script that set's up the VNI for the + # given VRF after any routing protocol. + # + # # add configuration to FRR + # frr_cfg = frr.FRRConfig() + # frr_cfg.load_configuration(frr_daemon) + # frr_cfg.modify_section(f'^vrf [a-zA-Z-]*$', '') + # frr_cfg.add_before(r'(interface .*|line vty)', vrf['new_frr_config']) + # frr_cfg.commit_configuration(frr_daemon) + # + # # Save configuration to /run/frr/config/frr.conf + # frr.save_configuration() return None |