diff options
author | khramshinr <khramshinr@gmail.com> | 2024-05-07 19:10:32 +0600 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-05-07 18:00:58 +0000 |
commit | a9700bd9bc3600416e7ec809754dd13cc09729fb (patch) | |
tree | 65756914eeebfda17f70e49d1e33d299597ba0d9 /src/conf_mode | |
parent | e54cffa9615acb8dd99b9b90621a004f15941321 (diff) | |
download | vyos-1x-a9700bd9bc3600416e7ec809754dd13cc09729fb.tar.gz vyos-1x-a9700bd9bc3600416e7ec809754dd13cc09729fb.zip |
bgp: T6082: Allow the same local-as and remote-as in one peer group
(cherry picked from commit 637a73e35ff716441df0430b2308d685707b2ca0)
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/protocols_bgp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/protocols_bgp.py b/src/conf_mode/protocols_bgp.py index 44409c0e3..22f020099 100755 --- a/src/conf_mode/protocols_bgp.py +++ b/src/conf_mode/protocols_bgp.py @@ -333,7 +333,7 @@ def verify(bgp): raise ConfigError('Cannot have local-as same as system-as number') # Neighbor AS specified for local-as and remote-as can not be the same - if dict_search('remote_as', peer_config) == asn: + if dict_search('remote_as', peer_config) == asn and neighbor != 'peer_group': raise ConfigError(f'Neighbor "{peer}" has local-as specified which is '\ 'the same as remote-as, this is not allowed!') |