diff options
| author | Christian Hopps <chopps@labn.net> | 2021-08-26 11:57:33 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-26 11:57:33 -0400 |
| commit | d448e2c5f96b3430fd643f52b9264ca87a45c291 (patch) | |
| tree | d38574fb0ce8c936a003287d107eebf6eb718a8c /lib/if.c | |
| parent | a594fc56829eecf60bedcb763b8d5962432b4c32 (diff) | |
| parent | 07679ad98ab97a4b783f7ae54f88d4d70a5729de (diff) | |
Merge pull request #9331 from idryzhov/explicit-exit
*: explicitly print "exit" at the end of every node config
Diffstat (limited to 'lib/if.c')
| -rw-r--r-- | lib/if.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1291,6 +1291,11 @@ static void cli_show_interface(struct vty *vty, struct lyd_node *dnode, vty_out(vty, "\n"); } +static void cli_show_interface_end(struct vty *vty, struct lyd_node *dnode) +{ + vty_out(vty, "exit\n"); +} + /* * XPath: /frr-interface:lib/interface/description */ @@ -1652,6 +1657,7 @@ const struct frr_yang_module_info frr_interface_info = { .create = lib_interface_create, .destroy = lib_interface_destroy, .cli_show = cli_show_interface, + .cli_show_end = cli_show_interface_end, .get_next = lib_interface_get_next, .get_keys = lib_interface_get_keys, .lookup_entry = lib_interface_lookup_entry, |
