mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 02:46:26 +00:00
Merge pull request #11004 from volodymyrhuti/master
zebra: set ZEBRA_IFC_DOWN on connected routes for inactive interfaces
This commit is contained in:
commit
945f6ce22c
@ -327,6 +327,8 @@ void connected_add_ipv4(struct interface *ifp, int flags,
|
||||
/* If we get a notification from the kernel,
|
||||
* we can safely assume the address is known to the kernel */
|
||||
SET_FLAG(ifc->conf, ZEBRA_IFC_QUEUED);
|
||||
if (!if_is_operative(ifp))
|
||||
SET_FLAG(ifc->conf, ZEBRA_IFC_DOWN);
|
||||
|
||||
/* Allocate new connected address. */
|
||||
p = prefix_ipv4_new();
|
||||
@ -548,6 +550,8 @@ void connected_add_ipv6(struct interface *ifp, int flags,
|
||||
/* If we get a notification from the kernel,
|
||||
* we can safely assume the address is known to the kernel */
|
||||
SET_FLAG(ifc->conf, ZEBRA_IFC_QUEUED);
|
||||
if (!if_is_operative(ifp))
|
||||
SET_FLAG(ifc->conf, ZEBRA_IFC_DOWN);
|
||||
|
||||
/* Allocate new connected address. */
|
||||
p = prefix_ipv6_new();
|
||||
|
Loading…
Reference in New Issue
Block a user