summaryrefslogtreecommitdiffstats
path: root/ripd
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2021-10-26 17:50:05 +0200
committerGitHub <noreply@github.com>2021-10-26 17:50:05 +0200
commit697257179dc63c4fa8274ee2d91e576477ff71d9 (patch)
treeb88a7d09138e524d4776797849c36ff85c90e229 /ripd
parentMerge pull request #9854 from opensourcerouting/zapi-call-table (diff)
parent*: fix interface config write in NB-converted daemons (diff)
downloadfrr-697257179dc63c4fa8274ee2d91e576477ff71d9.tar.xz
frr-697257179dc63c4fa8274ee2d91e576477ff71d9.zip
Merge pull request #9820 from idryzhov/if-nb-config
*: fix interface config write in NB-converted daemons
Diffstat (limited to 'ripd')
-rw-r--r--ripd/rip_interface.c29
1 files changed, 1 insertions, 28 deletions
diff --git a/ripd/rip_interface.c b/ripd/rip_interface.c
index 2eb7bb6da..3d128ee72 100644
--- a/ripd/rip_interface.c
+++ b/ripd/rip_interface.c
@@ -1103,33 +1103,6 @@ void rip_passive_nondefault_clean(struct rip *rip)
rip_passive_interface_apply_all(rip);
}
-/* Write rip configuration of each interface. */
-static int rip_interface_config_write(struct vty *vty)
-{
- struct vrf *vrf;
- int write = 0;
-
- RB_FOREACH (vrf, vrf_name_head, &vrfs_by_name) {
- struct interface *ifp;
-
- FOR_ALL_INTERFACES (vrf, ifp) {
- struct lyd_node *dnode;
-
- dnode = yang_dnode_getf(
- running_config->dnode,
- "/frr-interface:lib/interface[name='%s'][vrf='%s']",
- ifp->name, vrf->name);
- if (dnode == NULL)
- continue;
-
- write = 1;
- nb_cli_show_dnode_cmds(vty, dnode, false);
- }
- }
-
- return write;
-}
-
int rip_show_network_config(struct vty *vty, struct rip *rip)
{
unsigned int i;
@@ -1194,7 +1167,7 @@ void rip_if_init(void)
hook_register_prio(if_del, 0, rip_interface_delete_hook);
/* Install interface node. */
- if_cmd_init(rip_interface_config_write);
+ if_cmd_init_default();
if_zapi_callbacks(rip_ifp_create, rip_ifp_up,
rip_ifp_down, rip_ifp_destroy);
}