summaryrefslogtreecommitdiff
path: root/lib/northbound_cli.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-02-12 18:18:34 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2021-02-12 18:18:34 +0300
commitbcbe60d456b96127636cdb12485d827aa9e649c8 (patch)
tree44e3b76dcc83ce8ede246b016f81d2acaa99713e /lib/northbound_cli.c
parent497bb82b623579ade9fb54b7a32d0e8f7f3b4c74 (diff)
lib: allow "show config running" command for non-transactional CLI
This command doesn't rely on transactional CLI and works perfectly for daemons converted to northbound configuration. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/northbound_cli.c')
-rw-r--r--lib/northbound_cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/northbound_cli.c b/lib/northbound_cli.c
index ad7dad5cb2..1c1003ef0a 100644
--- a/lib/northbound_cli.c
+++ b/lib/northbound_cli.c
@@ -1894,7 +1894,6 @@ void nb_cli_init(struct thread_master *tm)
if (frr_get_cli_mode() == FRR_CLI_TRANSACTIONAL) {
install_element(ENABLE_NODE, &config_exclusive_cmd);
install_element(ENABLE_NODE, &config_private_cmd);
- install_element(ENABLE_NODE, &show_config_running_cmd);
install_element(ENABLE_NODE,
&show_config_compare_without_candidate_cmd);
install_element(ENABLE_NODE, &show_config_transaction_cmd);
@@ -1907,6 +1906,7 @@ void nb_cli_init(struct thread_master *tm)
}
/* Other commands. */
+ install_element(ENABLE_NODE, &show_config_running_cmd);
install_element(CONFIG_NODE, &yang_module_translator_load_cmd);
install_element(CONFIG_NODE, &yang_module_translator_unload_cmd);
install_element(ENABLE_NODE, &show_yang_operational_data_cmd);