Page MenuHomeVyOS Platform

bgp: Incorrect warning showed for address-family configured with neighbor as interface
Closed, ResolvedPublic

Description

Description: Warning is showed even though address-family is configured in the peer-group when the neighbor is defined as interface.
The warning works well when configured neighbor with ip address.

vyos@vyos# set protocols bgp neighbor eth0 interface peer-group 'peer1'
[edit]
vyos@vyos# set protocols bgp peer-group peer1 address-family ipv4-unicast
[edit]
vyos@vyos# set protocols bgp peer-group peer1 remote-as '65535'
[edit]
vyos@vyos# set protocols bgp peer-group peer1 update-source 'eth0'
[edit]
vyos@vyos# set protocols bgp system-as '65534'
[edit]
vyos@vyos# commit

WARNING: BGP neighbor "eth0" requires address-family!

Output:

vyos@responder# run sh bgp summary

IPv4 Unicast Summary (VRF default):
BGP router identifier 192.168.0.2, local AS number 65534 vrf-id 0
BGP table version 0
RIB entries 0, using 0 bytes of memory
Peers 1, using 725 KiB of memory
Peer groups 1, using 64 bytes of memory

Neighbor        V         AS   MsgRcvd   MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd   PfxSnt Desc
eth0            4      65535        10        10        0    0    0 00:07:33            0        0 N/A

Details

Difficulty level
Unknown (require assessment)
Version
1.4-rolling-202306280317
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)