-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
Description
FRR version 10.1.2
FRR doesn't disable BGP capability either software_version or hostname. It negotiates these capabilities and sends information to the peers regardless of the settings. Example (from its peer).
`vyos@vyos:~$ sho ip bg su
IPv4 Unicast Summary:
BGP router identifier 2.2.2.2, local AS number 1 VRF default vrf-id 0
BGP table version 3
RIB entries 5, using 640 bytes of memory
Peers 1, using 24 KiB of memory
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd PfxSnt Desc
10.65.1.150 4 1 106 106 3 0 0 00:05:05 2 2 FRRouting/10.1.2
Total number of neighbors 1
vyos@vyos:~$`
Example (from FRR side).
Current configuration: ! frr version 10.1.2 frr defaults traditional hostname adc-create-va-1 no ip forwarding no ipv6 forwarding ! router bgp 1 bgp log-neighbor-changes no bgp ebgp-requires-policy bgp deterministic-med timers bgp 3 9 neighbor 10.65.1.3 remote-as 1 neighbor 10.65.1.3 timers connect 10 no neighbor 10.65.1.3 capability fqdn ! address-family ipv4 unicast redistribute connected exit-address-family exit ! end frr-va#
Version
10.1.2
How to reproduce
- Configure bgp neighbor (ipv4 unicast).
- Disable capability software_version for this neighbor.
- clear bgp sessions.
- check desc from frr neighbor.
Expected behavior
vyos@vyos:~$ sho ip bg su
IPv4 Unicast Summary:
BGP router identifier 2.2.2.2, local AS number 1 VRF default vrf-id 0
BGP table version 5
RIB entries 5, using 640 bytes of memory
Peers 1, using 24 KiB of memory
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd PfxSnt Desc
10.65.1.150 4 1 284 283 5 0 0 00:00:04 2 2 N/A
Total number of neighbors 1
vyos@vyos:~$
Actual behavior
vyos@vyos:~$ sho ip bg su
IPv4 Unicast Summary:
BGP router identifier 2.2.2.2, local AS number 1 VRF default vrf-id 0
BGP table version 5
RIB entries 5, using 640 bytes of memory
Peers 1, using 24 KiB of memory
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd PfxSnt Desc
10.65.1.150 4 1 284 283 5 0 0 00:00:04 2 2 FRRouting/10.1.2
Total number of neighbors 1
vyos@vyos:~$
Additional context
I've check it against version 10.5 also. Same difference.
`fox-virtual-machine# sho run
Building configuration...
Current configuration:
!
frr version 10.5.0
frr defaults traditional
hostname fox-virtual-machine
log syslog informational
no ip forwarding
no ipv6 forwarding
service integrated-vtysh-config
!
router bgp 1
no bgp enforce-first-as
neighbor 10.65.1.3 remote-as 1
no neighbor 10.65.1.3 capability fqdn
!
address-family ipv4 unicast
redistribute connected
exit-address-family
exit
!
segment-routing
traffic-eng
exit
exit
!
end
`
`vyos@vyos:~$ sho ip bg su
IPv4 Unicast Summary:
BGP router identifier 2.2.2.2, local AS number 1 VRF default vrf-id 0
BGP table version 6
RIB entries 3, using 384 bytes of memory
Peers 1, using 24 KiB of memory
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd PfxSnt Desc
10.65.1.150 4 1 381 381 6 0 0 00:01:33 1 2 FRRouting/10.5.0
Total number of neighbors 1
`
Checklist
- I have searched the open issues for this bug.
- I have not included sensitive information in this report.