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>
(cherry picked from commit 93d9b1a)
  • Loading branch information
donaldsharp authored and mergify-bot committed Mar 27, 2022
1 parent b671502 commit 294208c
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions babeld/babel_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit 294208c

Please sign in to comment.