diff options
author | Brandon Stepler <brandon@stepler.net> | 2021-04-27 15:00:00 -0400 |
---|---|---|
committer | Brandon Stepler <brandon@stepler.net> | 2021-04-27 15:00:00 -0400 |
commit | c7f5da348ce2fe95b4b1bb505ce452e04857ea88 (patch) | |
tree | 883fffa3605c5fd458a246b06a49e3bdf65689b9 /src | |
parent | e5e61c36939dcbb1c7db6ec3941ea18bd7d80c0f (diff) | |
download | vyos-1x-c7f5da348ce2fe95b4b1bb505ce452e04857ea88.tar.gz vyos-1x-c7f5da348ce2fe95b4b1bb505ce452e04857ea88.zip |
bgp: T3503: allow "route-reflector-client" when "remote-as" is "internal"
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/protocols_bgp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/protocols_bgp.py b/src/conf_mode/protocols_bgp.py index 2bdeb5bcc..a8c8ff2a2 100755 --- a/src/conf_mode/protocols_bgp.py +++ b/src/conf_mode/protocols_bgp.py @@ -184,12 +184,12 @@ def verify(bgp): verify_route_map(afi_config['route_map'][tmp], bgp) if 'route_reflector_client' in afi_config: - if 'remote_as' in peer_config and bgp['local_as'] != peer_config['remote_as']: + if 'remote_as' in peer_config and peer_config['remote_as'] != 'internal' and peer_config['remote_as'] != bgp['local_as']: raise ConfigError('route-reflector-client only supported for iBGP peers') else: if 'peer_group' in peer_config: peer_group_as = dict_search(f'peer_group.{peer_group}.remote_as', bgp) - if peer_group_as != None and peer_group_as != bgp['local_as']: + if peer_group_as != None and peer_group_as != 'internal' and peer_group_as != bgp['local_as']: raise ConfigError('route-reflector-client only supported for iBGP peers') # Throw an error if a peer group is not configured for allow range |