Skip to content

Commit

Permalink
babeld: Rehook up interface up events
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
donaldsharp committed Mar 27, 2022
1 parent 5bc17d7 commit 93d9b1a
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions babeld/babel_interface.c
Expand Up @@ -60,21 +60,10 @@ static void babel_interface_free (babel_interface_nfo *bi);


static vector babel_enable_if; /* enable interfaces (by cmd). */ static vector babel_enable_if; /* enable interfaces (by cmd). */


int int babel_ifp_up(struct interface *ifp)
babel_interface_up (ZAPI_CALLBACK_ARGS)
{ {
struct stream *s = NULL;
struct interface *ifp = NULL;

debugf(BABEL_DEBUG_IF, "receive a 'interface up'"); 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); interface_recalculate(ifp);
return 0; return 0;
} }
Expand Down Expand Up @@ -1235,11 +1224,6 @@ DEFUN (show_babel_parameters,
return CMD_SUCCESS; return CMD_SUCCESS;
} }


int babel_ifp_up(struct interface *ifp)
{
return 0;
}

void void
babel_if_init(void) babel_if_init(void)
{ {
Expand Down

0 comments on commit 93d9b1a

Please sign in to comment.