diff options
author | Donald Sharp <sharpd@nvidia.com> | 2022-03-27 01:46:36 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2022-03-27 01:46:36 +0100 |
commit | 93d9b1afbec6e63d78ca087833d52036b294ed58 (patch) | |
tree | 934f7258e299db3e6495368d493ac74021dd6fe8 /babeld/babel_interface.c | |
parent | Merge pull request #10677 from mobash-rasool/pimv6-receive-pkt (diff) | |
download | frr-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.c | 18 |
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) { |