diff options
author | Daniil Baturin <daniil@vyos.io> | 2024-05-08 17:26:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-08 17:26:58 +0200 |
commit | 1b7a2d19cb8671391b541ffec610f36d1832bab7 (patch) | |
tree | ebbeb9378a11b51ce1b64fc8b9e12bc98aabb9c0 /src | |
parent | d7907cc7011459ecc99afe162490c4c571c0d9bb (diff) | |
parent | a9700bd9bc3600416e7ec809754dd13cc09729fb (diff) | |
download | vyos-1x-1b7a2d19cb8671391b541ffec610f36d1832bab7.tar.gz vyos-1x-1b7a2d19cb8671391b541ffec610f36d1832bab7.zip |
Merge pull request #3427 from vyos/mergify/bp/sagitta/pr-3422
bgp: T6082: Allow the same local-as and remote-as in one peer group (backport #3422)
Diffstat (limited to 'src')
-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!') |