summaryrefslogtreecommitdiffstats
path: root/vrrpd
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 /vrrpd
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 'vrrpd')
-rw-r--r--vrrpd/vrrp_vty.c31
1 files changed, 1 insertions, 30 deletions
diff --git a/vrrpd/vrrp_vty.c b/vrrpd/vrrp_vty.c
index a612b0205..c11254c71 100644
--- a/vrrpd/vrrp_vty.c
+++ b/vrrpd/vrrp_vty.c
@@ -715,35 +715,6 @@ DEFUN_NOSH (show_debugging_vrrp,
/* clang-format on */
-/*
- * Write per interface VRRP config.
- */
-static int vrrp_config_write_interface(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) {
- const 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;
-}
-
static struct cmd_node debug_node = {
.name = "debug",
.node = DEBUG_NODE,
@@ -763,7 +734,7 @@ void vrrp_vty_init(void)
install_node(&debug_node);
install_node(&vrrp_node);
vrf_cmd_init(NULL);
- if_cmd_init(vrrp_config_write_interface);
+ if_cmd_init_default();
install_element(VIEW_NODE, &vrrp_vrid_show_cmd);
install_element(VIEW_NODE, &vrrp_vrid_show_summary_cmd);