Skip to content

Commit

Permalink
ripngd: fix missing "exit" for "router ripng"
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Ryzhov <[email protected]>
  • Loading branch information
idryzhov committed Mar 6, 2024
1 parent aaa6c70 commit 1db1fbf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ripngd/ripng_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions ripngd/ripng_nb.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1db1fbf

Please sign in to comment.