summaryrefslogtreecommitdiffstats
path: root/ripngd
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2024-03-06 20:43:44 +0100
committerIgor Ryzhov <iryzhov@nfware.com>2024-03-06 20:43:44 +0100
commit1db1fbf7a65ff6b6b7c33d365d22020dbf8f8000 (patch)
tree8a15208faa225fee89e9d56ed404263e2ce7d0fe /ripngd
parentripd: fix missing "exit" for "router rip" (diff)
downloadfrr-1db1fbf7a65ff6b6b7c33d365d22020dbf8f8000.tar.xz
frr-1db1fbf7a65ff6b6b7c33d365d22020dbf8f8000.zip
ripngd: fix missing "exit" for "router ripng"
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'ripngd')
-rw-r--r--ripngd/ripng_cli.c6
-rw-r--r--ripngd/ripng_nb.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/ripngd/ripng_cli.c b/ripngd/ripng_cli.c
index a4a0f5a2c..ed460a239 100644
--- a/ripngd/ripng_cli.c
+++ b/ripngd/ripng_cli.c
@@ -83,6 +83,11 @@ void cli_show_router_ripng(struct vty *vty, const struct lyd_node *dnode,
vty_out(vty, "\n");
}
+void cli_show_end_router_ripng(struct vty *vty, const struct lyd_node *dnode)
+{
+ vty_out(vty, "exit\n");
+}
+
/*
* XPath: /frr-ripngd:ripngd/instance/allow-ecmp
*/
@@ -701,6 +706,7 @@ const struct frr_yang_module_info frr_ripngd_cli_info = {
{
.xpath = "/frr-ripngd:ripngd/instance",
.cbs.cli_show = cli_show_router_ripng,
+ .cbs.cli_show_end = cli_show_end_router_ripng,
},
{
.xpath = "/frr-ripngd:ripngd/instance/allow-ecmp",
diff --git a/ripngd/ripng_nb.h b/ripngd/ripng_nb.h
index a6ac1fba0..790a50f62 100644
--- a/ripngd/ripng_nb.h
+++ b/ripngd/ripng_nb.h
@@ -107,6 +107,7 @@ void ripngd_instance_timers_apply_finish(struct nb_cb_apply_finish_args *args);
/* Optional 'cli_show' callbacks. */
void cli_show_router_ripng(struct vty *vty, const struct lyd_node *dnode,
bool show_defaults);
+void cli_show_end_router_ripng(struct vty *vty, const struct lyd_node *dnode);
void cli_show_ripng_allow_ecmp(struct vty *vty, const struct lyd_node *dnode,
bool show_defaults);
void cli_show_ripng_default_information_originate(struct vty *vty,