diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2024-03-06 21:43:44 +0200 | 
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2024-03-06 21:43:44 +0200 | 
| commit | 1db1fbf7a65ff6b6b7c33d365d22020dbf8f8000 (patch) | |
| tree | 8a15208faa225fee89e9d56ed404263e2ce7d0fe /ripngd | |
| parent | aaa6c7088e393e8fc1d96a1108f2f85b038db8f9 (diff) | |
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.c | 6 | ||||
| -rw-r--r-- | ripngd/ripng_nb.h | 1 | 
2 files changed, 7 insertions, 0 deletions
diff --git a/ripngd/ripng_cli.c b/ripngd/ripng_cli.c index a4a0f5a2cb..ed460a239e 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 a6ac1fba07..790a50f628 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,  | 
