]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ripngd: fix missing "exit" for "router ripng"
authorIgor Ryzhov <iryzhov@nfware.com>
Wed, 6 Mar 2024 19:43:44 +0000 (21:43 +0200)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Fri, 8 Mar 2024 13:12:50 +0000 (13:12 +0000)
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
(cherry picked from commit 1db1fbf7a65ff6b6b7c33d365d22020dbf8f8000)

ripngd/ripng_cli.c
ripngd/ripng_nb.h

index a4a0f5a2cb38b27cdec00c7695fb8a9932e320cd..ed460a239e76dfa08fedfd8af0fd91e7c4a4ba7e 100644 (file)
@@ -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",
index a6ac1fba076b60ce98489988dfdd8e0ddc2d6ff6..790a50f62893a5bfe5b308f9c7329bb7ae3cd815 100644 (file)
@@ -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,