summaryrefslogtreecommitdiffstats
path: root/babeld/babel_interface.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-03-27 01:46:36 +0100
committerDonald Sharp <sharpd@nvidia.com>2022-03-27 01:46:36 +0100
commit93d9b1afbec6e63d78ca087833d52036b294ed58 (patch)
tree934f7258e299db3e6495368d493ac74021dd6fe8 /babeld/babel_interface.c
parentMerge pull request #10677 from mobash-rasool/pimv6-receive-pkt (diff)
downloadfrr-93d9b1afbec6e63d78ca087833d52036b294ed58.tar.xz
frr-93d9b1afbec6e63d78ca087833d52036b294ed58.zip
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>
Diffstat (limited to 'babeld/babel_interface.c')
-rw-r--r--babeld/babel_interface.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/babeld/babel_interface.c b/babeld/babel_interface.c
index 98c5d2119..00fb58e57 100644
--- a/babeld/babel_interface.c
+++ b/babeld/babel_interface.c
@@ -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)
{