summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-04-27 21:31:19 +0200
committerGitHub <noreply@github.com>2021-04-27 21:31:19 +0200
commitd2044c0eac444905549a6bac20b9eee78eae9084 (patch)
treef29d6afcebffff510e1c0d742cbbe09770b5432b /src/conf_mode
parente1563f9d175026488a36d52a6ffcfb6745d56644 (diff)
parentc7f5da348ce2fe95b4b1bb505ce452e04857ea88 (diff)
downloadvyos-1x-d2044c0eac444905549a6bac20b9eee78eae9084.tar.gz
vyos-1x-d2044c0eac444905549a6bac20b9eee78eae9084.zip
Merge pull request #822 from bstepler/T3503
bgp: T3503: allow "route-reflector-client" when "remote-as" is "internal"
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/protocols_bgp.py4
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