mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 11:18:52 +00:00
zebra: Fix situation where we would notify the owner it lost due to admin distance
The 'struct route_entry *old' and 'struct route_entry *new' can sometimes be the same route type( for a route replace ), so when we are checking to see if a new owner has taken over, don't tell the owner it is replacing it self. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com.
This commit is contained in:
parent
eaa23e020f
commit
9a9f89267a
@ -1110,7 +1110,7 @@ void rib_install_kernel(struct route_node *rn, struct route_entry *re,
|
|||||||
* If this is a replace to a new RE let the originator of the RE
|
* If this is a replace to a new RE let the originator of the RE
|
||||||
* know that they've lost
|
* know that they've lost
|
||||||
*/
|
*/
|
||||||
if (old && old != re)
|
if (old && (old != re) && (old->type != re->type))
|
||||||
zsend_route_notify_owner(old, p, ZAPI_ROUTE_BETTER_ADMIN_WON);
|
zsend_route_notify_owner(old, p, ZAPI_ROUTE_BETTER_ADMIN_WON);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user