diff options
author | Hanarion <landryjuge@gmail.com> | 2025-04-14 18:21:02 +0200 |
---|---|---|
committer | Landry JUGE <contact@landryjuge.com> | 2025-04-14 19:19:52 +0200 |
commit | 20887e6165c363062bd8edab40443f4ebc1b420f (patch) | |
tree | 76b201e7f38a6a18da2791b951e47e8011452743 /src | |
parent | 152f8d8bc251ad16dd6beb3d59942ac1f4b0e3b4 (diff) | |
download | vyos-1x-20887e6165c363062bd8edab40443f4ebc1b420f.tar.gz vyos-1x-20887e6165c363062bd8edab40443f4ebc1b420f.zip |
T7364: Fixing Route reflector client check not working for peer-group
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 53e83c3b4..42f86064c 100755 --- a/src/conf_mode/protocols_bgp.py +++ b/src/conf_mode/protocols_bgp.py @@ -413,9 +413,9 @@ def verify(config_dict): verify_route_map(afi_config['route_map'][tmp], bgp) if 'route_reflector_client' in afi_config: - peer_group_as = peer_config.get('remote_as') + peer_as = peer_config.get('remote_as') - if peer_group_as is None or (peer_group_as != 'internal' and peer_group_as != bgp['system_as']): + if peer_as is not None and (peer_as != 'internal' and peer_as != bgp['system_as']): raise ConfigError('route-reflector-client only supported for iBGP peers') else: if 'peer_group' in peer_config: |