diff options
author | Christian Breunig <christian@breunig.cc> | 2024-01-16 15:07:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-16 15:07:09 +0100 |
commit | dad5c1cd5115bfc87f8abab3238053a3be37f6f5 (patch) | |
tree | 6af3dada0cd814a1669a3ec11d320de37e4caaaf /src/conf_mode/protocols_bgp.py | |
parent | b2fbff135fe4b83093b36927a8dcaa43ba4ecb9a (diff) | |
parent | 93dc024fccd1b653428f7fe9a1faa4f8e6ba7248 (diff) | |
download | vyos-1x-dad5c1cd5115bfc87f8abab3238053a3be37f6f5.tar.gz vyos-1x-dad5c1cd5115bfc87f8abab3238053a3be37f6f5.zip |
Merge pull request #2835 from vyos/mergify/bp/sagitta/pr-2834
bgp: T5937: fix migration script for IPv6 AFI peer-group (backport #2834)
Diffstat (limited to 'src/conf_mode/protocols_bgp.py')
-rwxr-xr-x | src/conf_mode/protocols_bgp.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/conf_mode/protocols_bgp.py b/src/conf_mode/protocols_bgp.py index e8bb11828..f6f3370c3 100755 --- a/src/conf_mode/protocols_bgp.py +++ b/src/conf_mode/protocols_bgp.py @@ -220,9 +220,12 @@ def verify_afi(peer_config, bgp_config): # If address_family configured under peer-group # if neighbor interface configured - peer_group_name = '' + peer_group_name = None if dict_search('interface.peer_group', peer_config): peer_group_name = peer_config['interface']['peer_group'] + elif dict_search('interface.v6only.peer_group', peer_config): + peer_group_name = peer_config['interface']['v6only']['peer_group'] + # if neighbor IP configured. if 'peer_group' in peer_config: peer_group_name = peer_config['peer_group'] |