diff options
author | Christian Breunig <christian@breunig.cc> | 2024-01-14 13:26:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-14 13:26:40 +0100 |
commit | 06eabd239da20945b20900b6e91ee9be9b446c1d (patch) | |
tree | 74627b0ca159e8158af161d0ae30c57a5fe480f7 /src | |
parent | 945b645eb32d40d83bd09f5b418dd969880f3fd4 (diff) | |
parent | 42d6a8cd500b2a92e9dbe0e868b84f4b55b1e02b (diff) | |
download | vyos-1x-06eabd239da20945b20900b6e91ee9be9b446c1d.tar.gz vyos-1x-06eabd239da20945b20900b6e91ee9be9b446c1d.zip |
Merge pull request #2820 from vyos/mergify/bp/sagitta/pr-2819
bgp: T591: SRv6 improvements (backport #2819)
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/protocols_bgp.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/conf_mode/protocols_bgp.py b/src/conf_mode/protocols_bgp.py index 89e2aab8c..e8bb11828 100755 --- a/src/conf_mode/protocols_bgp.py +++ b/src/conf_mode/protocols_bgp.py @@ -542,6 +542,10 @@ def verify(bgp): tmp = dict_search(f'route_map.vpn.{export_import}', afi_config) if tmp: verify_route_map(tmp, bgp) + # per-vrf sid and per-af sid are mutually exclusive + if 'sid' in afi_config and 'sid' in bgp: + raise ConfigError('SID per VRF and SID per address-family are mutually exclusive!') + # Checks only required for L2VPN EVPN if afi in ['l2vpn_evpn']: if 'vni' in afi_config: |