From a9700bd9bc3600416e7ec809754dd13cc09729fb Mon Sep 17 00:00:00 2001 From: khramshinr Date: Tue, 7 May 2024 19:10:32 +0600 Subject: bgp: T6082: Allow the same local-as and remote-as in one peer group (cherry picked from commit 637a73e35ff716441df0430b2308d685707b2ca0) --- src/conf_mode/protocols_bgp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/conf_mode/protocols_bgp.py') 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!') -- cgit v1.2.3