summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-01-14 13:26:40 +0100
committerGitHub <noreply@github.com>2024-01-14 13:26:40 +0100
commit06eabd239da20945b20900b6e91ee9be9b446c1d (patch)
tree74627b0ca159e8158af161d0ae30c57a5fe480f7 /src
parent945b645eb32d40d83bd09f5b418dd969880f3fd4 (diff)
parent42d6a8cd500b2a92e9dbe0e868b84f4b55b1e02b (diff)
downloadvyos-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-xsrc/conf_mode/protocols_bgp.py4
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: