summaryrefslogtreecommitdiff
path: root/src/conf_mode/protocols_bgp.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-01-14 12:33:07 +0100
committerGitHub <noreply@github.com>2024-01-14 12:33:07 +0100
commit2db98a47a066e53972c3c7727a4618ef72a91951 (patch)
treee5ccd4336c67d9a37c599785d71bc72e705a14bd /src/conf_mode/protocols_bgp.py
parent9b866fdb970aae782cf0a5d55d7117450e0c37eb (diff)
parent7349927908206fa83a7295d643f56950309efb4f (diff)
downloadvyos-1x-2db98a47a066e53972c3c7727a4618ef72a91951.tar.gz
vyos-1x-2db98a47a066e53972c3c7727a4618ef72a91951.zip
Merge pull request #2819 from c-po/T591-srv6-bgp-improvements
bgp: T591: SRv6 improvements
Diffstat (limited to 'src/conf_mode/protocols_bgp.py')
-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: