diff options
Diffstat (limited to 'ripd/rip_cli.c')
| -rw-r--r-- | ripd/rip_cli.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ripd/rip_cli.c b/ripd/rip_cli.c index fda258ae88..510aa66155 100644 --- a/ripd/rip_cli.c +++ b/ripd/rip_cli.c @@ -1227,6 +1227,19 @@ void cli_show_ip_rip_authentication_key_chain(struct vty *vty, yang_dnode_get_string(dnode, NULL)); } +/* + * XPath: /frr-ripd:clear-rip-route + */ +DEFPY (clear_ip_rip, + clear_ip_rip_cmd, + "clear ip rip", + CLEAR_STR + IP_STR + "Clear IP RIP database\n") +{ + return nb_cli_rpc("/frr-ripd:clear-rip-route", NULL, NULL); +} + void rip_cli_init(void) { install_element(CONFIG_NODE, &router_rip_cmd); @@ -1269,4 +1282,5 @@ void rip_cli_init(void) install_element(INTERFACE_NODE, &no_ip_rip_authentication_key_chain_cmd); + install_element(ENABLE_NODE, &clear_ip_rip_cmd); } |
