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:
Donald Sharp 2022-03-26 20:46:36 -04:00
parent 5bc17d7bd0
commit 93d9b1afbe

View File

@ -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)
{