diff options
author | srividya0208 <a.srividya@vyos.io> | 2023-07-25 02:36:49 -0400 |
---|---|---|
committer | srividya0208 <a.srividya@vyos.io> | 2023-07-27 06:50:55 -0400 |
commit | f0a630cce26aa4f99e367bae2b41495c5f740f95 (patch) | |
tree | 850d4daf1ad01da6026c96105be0eddf3f204d02 | |
parent | 20b7155f4140f54cf7669256160b6fedd8c1ab7a (diff) | |
download | vyos-1x-f0a630cce26aa4f99e367bae2b41495c5f740f95.tar.gz vyos-1x-f0a630cce26aa4f99e367bae2b41495c5f740f95.zip |
T5127: vpnv4/vpnv6 : warning for router-id
-rwxr-xr-x | src/conf_mode/protocols_bgp.py | 2 |
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']): |