Open alexissavin opened 3 days ago
Would you like this patch patch into the existing net/frr9 and net/frr10 ports without waiting for new FRR release ?
Well, we are running net/frr9 in production, more precisely 9.1.2. We switched to FRR 9 recently and considering the rapid changes introduced between versions, we do not wish to upgrade too fast to upper versions.
We applied the patch building the port, but hope that considering the impact, this could make its way into the official release.
Description
Kernel's default gateway and static routes are missing from 'show ip route' in FRR 9.* up to FRR 10.1.1 on FreeBSD 14. This lead to unexpected behavior such as preventing the establishment of BGP over multi-hop sessions.
To make it short:
Version
How to reproduce
Deploy FreeBSD 14 then perform the following actions:
frr8-8.5.6_1 (Before the problem appears)
pkg update pkg search frr pkg install frr8-8.5.6_1 vi /etc/rc.conf
mkdir /usr/local/etc/frr/ cat /usr/local/etc/frr/vtysh.conf
touch /usr/local/etc/frr/zebra.conf /usr/local/etc/frr/bgpd.conf service frr onestart vtysh -c "show ip route"
frr10-10.1.1_1 (Latest affected version of FRR)
service frr onestop pkg remove frr8-8.5.6_1 pkg install frr10-10.1.1_1 service frr onestart vtysh -c "show ip route"
route add 10.42.42.0/24 172.16.0.1 vtysh -c "show ip route"
Expected behavior
Default gateway and static kernel routes present in the kernel routing's table should be imported by zebra and appear in the result of 'show ip route'.
Actual behavior
Default gateway and static kernel routes present in the kernel routing's table before FRR is started are ignored and do not appear in the result of 'show ip route'.
Additional context
9185 also impact FreeBSD (version 12), but state that this only affect route without gateway (ie: only pointing to an interface)
Checklist