summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-05-08 17:26:58 +0200
committerGitHub <noreply@github.com>2024-05-08 17:26:58 +0200
commit1b7a2d19cb8671391b541ffec610f36d1832bab7 (patch)
treeebbeb9378a11b51ce1b64fc8b9e12bc98aabb9c0 /src
parentd7907cc7011459ecc99afe162490c4c571c0d9bb (diff)
parenta9700bd9bc3600416e7ec809754dd13cc09729fb (diff)
downloadvyos-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-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!')