summaryrefslogtreecommitdiff
path: root/src/conf_mode/protocols_bgp.py
diff options
context:
space:
mode:
authorkhramshinr <khramshinr@gmail.com>2024-05-07 19:10:32 +0600
committerkhramshinr <khramshinr@gmail.com>2024-05-07 19:11:39 +0600
commit637a73e35ff716441df0430b2308d685707b2ca0 (patch)
tree233e5c6a403b12744bade6676890360bdb18900e /src/conf_mode/protocols_bgp.py
parent5b2436fbec8e5279c8b27c03819b1607c1eca0af (diff)
downloadvyos-1x-637a73e35ff716441df0430b2308d685707b2ca0.tar.gz
vyos-1x-637a73e35ff716441df0430b2308d685707b2ca0.zip
bgp: T6082: Allow the same local-as and remote-as in one peer group
Diffstat (limited to 'src/conf_mode/protocols_bgp.py')
-rwxr-xr-xsrc/conf_mode/protocols_bgp.py2
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!')