diff options
author | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-17 13:58:03 +0100 |
---|---|---|
committer | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-28 22:28:39 +0100 |
commit | df296d54aeb1ccb94ddbf9524a6643aef3783dfc (patch) | |
tree | 25b4c0b350cb804cbd705c0627acf06898f463e6 /zebra/zebra_nb_config.c | |
parent | zebra: convert inteface multicast command to NB (diff) | |
download | frr-df296d54aeb1ccb94ddbf9524a6643aef3783dfc.tar.xz frr-df296d54aeb1ccb94ddbf9524a6643aef3783dfc.zip |
zebra: convert interface link-detect command to NB
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to '')
-rw-r--r-- | zebra/zebra_nb_config.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/zebra/zebra_nb_config.c b/zebra/zebra_nb_config.c index c51250e76..b14836303 100644 --- a/zebra/zebra_nb_config.c +++ b/zebra/zebra_nb_config.c @@ -1039,23 +1039,7 @@ int lib_interface_zebra_link_detect_modify(struct nb_cb_modify_args *args) bool link_detect; ifp = nb_running_get_entry(args->dnode, NULL, true); - link_detect = yang_dnode_get_bool(args->dnode, "link-detect"); - - if_linkdetect(ifp, link_detect); - - return NB_OK; -} - -int lib_interface_zebra_link_detect_destroy(struct nb_cb_destroy_args *args) -{ - if (args->event != NB_EV_APPLY) - return NB_OK; - - struct interface *ifp; - bool link_detect; - - ifp = nb_running_get_entry(args->dnode, NULL, true); - link_detect = yang_dnode_get_bool(args->dnode, "link-detect"); + link_detect = yang_dnode_get_bool(args->dnode, NULL); if_linkdetect(ifp, link_detect); |