diff options
author | Christian Breunig <christian@breunig.cc> | 2024-05-07 20:00:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-07 20:00:11 +0200 |
commit | 9353c9790b367b21cba5000f2c904ed41c29f8d7 (patch) | |
tree | ef6ae121b12042f07e561734f17a4084d8d33bbe /src/conf_mode | |
parent | abc327ebc9e77910b29c1a0fa32f757c51574971 (diff) | |
parent | 637a73e35ff716441df0430b2308d685707b2ca0 (diff) | |
download | vyos-1x-9353c9790b367b21cba5000f2c904ed41c29f8d7.tar.gz vyos-1x-9353c9790b367b21cba5000f2c904ed41c29f8d7.zip |
Merge pull request #3422 from HollyGurza/T6082
bgp: T6082: Allow the same local-as and remote-as in one peer group
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!') |