summaryrefslogtreecommitdiffstats
path: root/ripd
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2024-03-06 20:42:53 +0100
committerIgor Ryzhov <iryzhov@nfware.com>2024-03-06 20:42:53 +0100
commitaaa6c7088e393e8fc1d96a1108f2f85b038db8f9 (patch)
treeba55a40a6f6d564d6f5858d7d016ba488b54f1dc /ripd
parentlib: fix order of interfaces in the config (diff)
downloadfrr-aaa6c7088e393e8fc1d96a1108f2f85b038db8f9.tar.xz
frr-aaa6c7088e393e8fc1d96a1108f2f85b038db8f9.zip
ripd: fix missing "exit" for "router rip"
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'ripd')
-rw-r--r--ripd/rip_cli.c6
-rw-r--r--ripd/rip_nb.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/ripd/rip_cli.c b/ripd/rip_cli.c
index 29db1b232..2e967698e 100644
--- a/ripd/rip_cli.c
+++ b/ripd/rip_cli.c
@@ -83,6 +83,11 @@ void cli_show_router_rip(struct vty *vty, const struct lyd_node *dnode,
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
*/
@@ -1332,6 +1337,7 @@ const struct frr_yang_module_info frr_ripd_cli_info = {
{
.xpath = "/frr-ripd:ripd/instance",
.cbs.cli_show = cli_show_router_rip,
+ .cbs.cli_show_end = cli_show_end_router_rip,
},
{
.xpath = "/frr-ripd:ripd/instance/allow-ecmp",
diff --git a/ripd/rip_nb.h b/ripd/rip_nb.h
index d07273af8..ee592daf8 100644
--- a/ripd/rip_nb.h
+++ b/ripd/rip_nb.h
@@ -173,6 +173,7 @@ void ripd_instance_timers_apply_finish(struct nb_cb_apply_finish_args *args);
/* Optional 'cli_show' callbacks. */
void cli_show_router_rip(struct vty *vty, const struct lyd_node *dnode,
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,
bool show_defaults);
void cli_show_rip_default_information_originate(struct vty *vty,