Page MenuHomeVyOS Platform

Bgp listen-range wrong commit message
Closed, ResolvedPublicBUG

Description

Create peer-group and listen range

set protocols bgp 64501 peer-group FOO
set protocols bgp 64501 listen range 100.64.0.0/24 peer-group 'FOO'

Commit and it tells that range does not exist.

vyos@r2-roll# commit
Peer-group "FOO" for listen range "100.64.0.0/24" does not exist!
[[protocols bgp 64501]] failed
Commit failed

The real fail reason:

% Specify remote-as or peer-group remote AS firs

So it expected option "remote-as" for peer-group

vyos@r2-roll# set protocols bgp 64501 peer-group FOO remote-as 65002
[edit]
vyos@r2-roll# commit
[edit]

Details

Difficulty level
Easy (less than an hour)
Version
VyOS 1.4-rolling-202102162107
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible

Event Timeline

Something wrong with that check https://github.com/vyos/vyos-1x/blob/8732ebc46a2daddc6e4dfa05f3f70bf2ac9400af/src/conf_mode/protocols_bgp.py#L170-L171

asn_config

vyos@r-roll01# commit
[ protocols bgp 64501 ]
{'listen': {'range': {'100.64.0.0/24': {'peer_group': 'FOO'}}},
 'peer_group': {'FOO': {}}}

But "dict_search(f'peer_group.{peer_group}', asn_config)"

{}