diff options
author | khramshinr <khramshinr@gmail.com> | 2024-03-26 19:25:56 +0800 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-03-26 12:34:23 +0000 |
commit | f62e67e78bae6425057a5fb57676d8b911bc9cc7 (patch) | |
tree | 7b740f8de3802759c6a8324b23e3b8d6b1cdc37d /src/conf_mode/protocols_bgp.py | |
parent | 25891616fd74013241dc755166c7e3ad732849cc (diff) | |
download | vyos-1x-f62e67e78bae6425057a5fb57676d8b911bc9cc7.tar.gz vyos-1x-f62e67e78bae6425057a5fb57676d8b911bc9cc7.zip |
bgp: T6106: fix test and verify()
(cherry picked from commit 2ba435fa4bc8a5c9b2285fb9215ebc582bfb5fdf)
Diffstat (limited to 'src/conf_mode/protocols_bgp.py')
-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 d90dfe45b..f1c59cbde 100755 --- a/src/conf_mode/protocols_bgp.py +++ b/src/conf_mode/protocols_bgp.py @@ -457,6 +457,8 @@ def verify(bgp): peer_group_as = dict_search(f'peer_group.{peer_group}.remote_as', bgp) if peer_group_as != None and peer_group_as != 'internal' and peer_group_as != bgp['system_as']: raise ConfigError('route-reflector-client only supported for iBGP peers') + else: + raise ConfigError('route-reflector-client only supported for iBGP peers') # Throw an error if a peer group is not configured for allow range for prefix in dict_search('listen.range', bgp) or []: |