mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 06:50:17 +00:00
babeld: Rehook up interface up events
When babeld was switched over to the zapi interface up/down callbacks the interface up event was not properly put back in. Fixes: #10893 Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
5bc17d7bd0
commit
93d9b1afbe
@ -60,21 +60,10 @@ static void babel_interface_free (babel_interface_nfo *bi);
|
||||
|
||||
static vector babel_enable_if; /* enable interfaces (by cmd). */
|
||||
|
||||
int
|
||||
babel_interface_up (ZAPI_CALLBACK_ARGS)
|
||||
int babel_ifp_up(struct interface *ifp)
|
||||
{
|
||||
struct stream *s = NULL;
|
||||
struct interface *ifp = NULL;
|
||||
|
||||
debugf(BABEL_DEBUG_IF, "receive a 'interface up'");
|
||||
|
||||
s = zclient->ibuf;
|
||||
ifp = zebra_interface_state_read(s, vrf_id); /* it updates iflist */
|
||||
|
||||
if (ifp == NULL) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
interface_recalculate(ifp);
|
||||
return 0;
|
||||
}
|
||||
@ -1235,11 +1224,6 @@ DEFUN (show_babel_parameters,
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
int babel_ifp_up(struct interface *ifp)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
babel_if_init(void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user