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