diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2024-03-09 00:00:12 +0200 |
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2024-03-09 00:00:12 +0200 |
| commit | 1ba97510e2683e6178973be98f1004a45462621e (patch) | |
| tree | 48a4e391cdf27d6aa52475b197e01c0e986214b8 /ripd/rip_cli.c | |
| parent | 7e058c201adaa493207dd5305c7aaa970a3580ea (diff) | |
ripd: fix "clear ip rip" command
mgmtd doesn't support YANG RPCs yet, so this command must go directly to
ripd.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'ripd/rip_cli.c')
| -rw-r--r-- | ripd/rip_cli.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/ripd/rip_cli.c b/ripd/rip_cli.c index 2e967698ea..4d4349b81a 100644 --- a/ripd/rip_cli.c +++ b/ripd/rip_cli.c @@ -1125,36 +1125,6 @@ void cli_show_ip_rip_bfd_profile(struct vty *vty, const struct lyd_node *dnode, yang_dnode_get_string(dnode, NULL)); } -/* - * XPath: /frr-ripd:clear-rip-route - */ -DEFPY_YANG (clear_ip_rip, - clear_ip_rip_cmd, - "clear ip rip [vrf WORD]", - CLEAR_STR - IP_STR - "Clear IP RIP database\n" - VRF_CMD_HELP_STR) -{ - struct list *input; - int ret; - - input = list_new(); - if (vrf) { - struct yang_data *yang_vrf; - - yang_vrf = yang_data_new("/frr-ripd:clear-rip-route/input/vrf", - vrf); - listnode_add(input, yang_vrf); - } - - ret = nb_cli_rpc(vty, "/frr-ripd:clear-rip-route", input, NULL); - - list_delete(&input); - - return ret; -} - DEFPY_YANG( rip_distribute_list, rip_distribute_list_cmd, "distribute-list ACCESSLIST4_NAME$name <in|out>$dir [WORD$ifname]", @@ -1325,8 +1295,6 @@ void rip_cli_init(void) install_element(INTERFACE_NODE, &ip_rip_bfd_profile_cmd); install_element(INTERFACE_NODE, &no_ip_rip_bfd_profile_cmd); - install_element(ENABLE_NODE, &clear_ip_rip_cmd); - if_rmap_init(RIP_NODE); } /* clang-format off */ |
