ripd: fix missing "exit" for "router rip"

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
Igor Ryzhov 2024-03-06 21:42:53 +02:00
parent 18da736949
commit aaa6c7088e
2 changed files with 7 additions and 0 deletions

View file

@ -83,6 +83,11 @@ void cli_show_router_rip(struct vty *vty, const struct lyd_node *dnode,
vty_out(vty, "\n"); vty_out(vty, "\n");
} }
void cli_show_end_router_rip(struct vty *vty, const struct lyd_node *dnode)
{
vty_out(vty, "exit\n");
}
/* /*
* XPath: /frr-ripd:ripd/instance/allow-ecmp * XPath: /frr-ripd:ripd/instance/allow-ecmp
*/ */
@ -1332,6 +1337,7 @@ const struct frr_yang_module_info frr_ripd_cli_info = {
{ {
.xpath = "/frr-ripd:ripd/instance", .xpath = "/frr-ripd:ripd/instance",
.cbs.cli_show = cli_show_router_rip, .cbs.cli_show = cli_show_router_rip,
.cbs.cli_show_end = cli_show_end_router_rip,
}, },
{ {
.xpath = "/frr-ripd:ripd/instance/allow-ecmp", .xpath = "/frr-ripd:ripd/instance/allow-ecmp",

View file

@ -173,6 +173,7 @@ void ripd_instance_timers_apply_finish(struct nb_cb_apply_finish_args *args);
/* Optional 'cli_show' callbacks. */ /* Optional 'cli_show' callbacks. */
void cli_show_router_rip(struct vty *vty, const struct lyd_node *dnode, void cli_show_router_rip(struct vty *vty, const struct lyd_node *dnode,
bool show_defaults); bool show_defaults);
void cli_show_end_router_rip(struct vty *vty, const struct lyd_node *dnode);
void cli_show_rip_allow_ecmp(struct vty *vty, const struct lyd_node *dnode, void cli_show_rip_allow_ecmp(struct vty *vty, const struct lyd_node *dnode,
bool show_defaults); bool show_defaults);
void cli_show_rip_default_information_originate(struct vty *vty, void cli_show_rip_default_information_originate(struct vty *vty,