diff options
author | Igor Ryzhov <iryzhov@nfware.com> | 2021-02-12 16:18:34 +0100 |
---|---|---|
committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-02-12 16:18:34 +0100 |
commit | bcbe60d456b96127636cdb12485d827aa9e649c8 (patch) | |
tree | 44e3b76dcc83ce8ede246b016f81d2acaa99713e /lib | |
parent | Merge pull request #8063 from ton31337/fix/typo_enum_bestpath (diff) | |
download | frr-bcbe60d456b96127636cdb12485d827aa9e649c8.tar.xz frr-bcbe60d456b96127636cdb12485d827aa9e649c8.zip |
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')
-rw-r--r-- | lib/northbound_cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/northbound_cli.c b/lib/northbound_cli.c index ad7dad5cb..1c1003ef0 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); |