mirror of
https://git.proxmox.com/git/mirror_frr
synced 2026-02-01 17:19:52 +00:00
bgpd: fix evpn zclient_send_message return code
In scaled EVPN route sync from bgp to zebra, return code can be ZCLIENT_SEND_BUFFERED which was treated as error and leads to route install/uninstall failure. Following error logs were seen: 2023-07-07T17:05:59.640899+03:00 vtep12 bgpd[15305]: [WYBZ0-MM8F1][EC 33554471] 0: Failed to uninstall EVPN IMET route in VNI 478 2023-07-07T17:05:59.640913+03:00 vtep12 bgpd[15305]: [Y5VKN-9BV7H][EC 33554471] default (0): Failed to uninstall EVPN [3]:[0]:[32]:[27.0.0.5] route from VNI 465 IP table 2023-07-07T17:05:59.640927+03:00 vtep12 bgpd[15305]: [WYBZ0-MM8F1][EC 33554471] 0: Failed to uninstall EVPN IMET route in VNI 465 2023-07-07T17:05:59.640940+03:00 vtep12 bgpd[15305]: [Y5VKN-9BV7H][EC 33554471] default (0): Failed to uninstall EVPN [3]:[0]:[32]:[27.0.0.5] route from VNI 173 IP table Ticket:#3499957 Testing Done: Before fix: root@vtep12:mgmt:/home/cumulus# bridge -d -s fdb show | grep 27.0.0.5 | wc -l 16010 Once source VTEP withdraws, DUT VTEP still has stale entries root@vtep12:mgmt:~# bridge -d -s fdb show | grep 27.0.0.5 | wc -l 12990 After fix: Once source VTEP withdraws, DUT VTEP still is able to delete entries root@vtep12:mgmt:/home/cumulus# bridge -d -s fdb show | grep 27.0.0.5 | wc -l 0 Zapi stats: Client: bgp [32/133] ------------------------ FD: 76 Connect Time: 00:26:17 Nexthop Registry Time: 00:26:11 Nexthop Last Update Time: 00:23:31 Client will Not be notified about it's routes status Last Msg Rx Time: 00:21:33 Last Msg Tx Time: 00:23:31 Last Rcvd Cmd: ZEBRA_REMOTE_MACIP_ADD Last Sent Cmd: ZEBRA_NEXTHOP_UPDATE Type Add Update Del ================================================== IPv4 7 0 1 IPv6 0 0 0 Redist:v4 22 0 0 Redist:v6 0 0 0 VRF 2 0 0 Connected 4170 0 0 Interface 9 0 4 Intf Addr 2166 0 0 BFD peer 0 0 0 NHT v4 2 0 1 NHT v6 4 0 0 VxLAN SG 0 0 0 VNI 1010 0 0 L3-VNI 0 0 0 MAC-IP 46010 0 0 ES 2024 0 0 ES-EVI 0 0 0 Errors: 0 Signed-off-by: Chirag Shah <chirag@nvidai.com>
This commit is contained in:
parent
f5b8a4e188
commit
bad029e92d
@ -936,7 +936,10 @@ static int bgp_zebra_send_remote_macip(struct bgp *bgp, struct bgpevpn *vpn,
|
||||
frrtrace(5, frr_bgp, evpn_mac_ip_zsend, add, vpn, p, remote_vtep_ip,
|
||||
esi);
|
||||
|
||||
return zclient_send_message(zclient);
|
||||
if (zclient_send_message(zclient) == ZCLIENT_SEND_FAILURE)
|
||||
return -1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -988,7 +991,10 @@ static int bgp_zebra_send_remote_vtep(struct bgp *bgp, struct bgpevpn *vpn,
|
||||
|
||||
frrtrace(3, frr_bgp, evpn_bum_vtep_zsend, add, vpn, p);
|
||||
|
||||
return zclient_send_message(zclient);
|
||||
if (zclient_send_message(zclient) == ZCLIENT_SEND_FAILURE)
|
||||
return -1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user