summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-07-27 16:12:35 +0200
committerGitHub <noreply@github.com>2023-07-27 16:12:35 +0200
commitef6cc1f32566e8524e71634c386c8044e5bcc673 (patch)
treebca6405d15531e55569aacff21391b09ec78e053 /src/conf_mode
parent3de59f1365e5b908d3b24748d77dcb0bd9477ca8 (diff)
parentf0a630cce26aa4f99e367bae2b41495c5f740f95 (diff)
downloadvyos-1x-ef6cc1f32566e8524e71634c386c8044e5bcc673.tar.gz
vyos-1x-ef6cc1f32566e8524e71634c386c8044e5bcc673.zip
Merge pull request #2114 from srividya0208/T5252
T5127: vpnv4/v6 : warning for router-id
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/protocols_bgp.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/conf_mode/protocols_bgp.py b/src/conf_mode/protocols_bgp.py
index cec025fea..7b9f15505 100755
--- a/src/conf_mode/protocols_bgp.py
+++ b/src/conf_mode/protocols_bgp.py
@@ -475,6 +475,8 @@ def verify(bgp):
if verify_vrf_as_import(vrf_name, afi, bgp['dependent_vrfs']):
raise ConfigError(
'Command "import vrf" conflicts with "rd vpn export" command!')
+ if not dict_search('parameters.router_id', bgp):
+ Warning(f'BGP "router-id" is required when using "rd" and "route-target"!')
if dict_search('route_target.vpn.both', afi_config):
if verify_vrf_as_import(vrf_name, afi, bgp['dependent_vrfs']):