diff options
| author | Russ White <russ@riw.us> | 2021-02-02 07:44:21 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-02 07:44:21 -0500 |
| commit | 8f57f7413cae483fdae4c89842ddd6b0860d1b2b (patch) | |
| tree | e55d40823268ab19e83ce7e1ea4fefaa3484edad /lib/command.c | |
| parent | b449f7dc10beb872f146c52ca6545afc4e582400 (diff) | |
| parent | acbf5146a98990850679903119d42c5dfb7cdf26 (diff) | |
Merge pull request #6766 from opensourcerouting/xref
lib: xrefs - general cross-references & unique IDs
Diffstat (limited to 'lib/command.c')
| -rw-r--r-- | lib/command.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/command.c b/lib/command.c index b34fa7ff3e..6a4d504b2f 100644 --- a/lib/command.c +++ b/lib/command.c @@ -277,7 +277,7 @@ const char *cmd_prompt(enum node_type node) } /* Install a command into a node. */ -void install_element(enum node_type ntype, const struct cmd_element *cmd) +void _install_element(enum node_type ntype, const struct cmd_element *cmd) { struct cmd_node *cnode; @@ -323,7 +323,7 @@ void install_element(enum node_type ntype, const struct cmd_element *cmd) vector_set(cnode->cmd_vector, (void *)cmd); if (ntype == VIEW_NODE) - install_element(ENABLE_NODE, cmd); + _install_element(ENABLE_NODE, cmd); } void uninstall_element(enum node_type ntype, const struct cmd_element *cmd) @@ -2344,18 +2344,18 @@ const char *host_config_get(void) void install_default(enum node_type node) { - install_element(node, &config_exit_cmd); - install_element(node, &config_quit_cmd); - install_element(node, &config_end_cmd); - install_element(node, &config_help_cmd); - install_element(node, &config_list_cmd); - install_element(node, &show_cli_graph_cmd); - install_element(node, &find_cmd); + _install_element(node, &config_exit_cmd); + _install_element(node, &config_quit_cmd); + _install_element(node, &config_end_cmd); + _install_element(node, &config_help_cmd); + _install_element(node, &config_list_cmd); + _install_element(node, &show_cli_graph_cmd); + _install_element(node, &find_cmd); - install_element(node, &config_write_cmd); - install_element(node, &show_running_config_cmd); + _install_element(node, &config_write_cmd); + _install_element(node, &show_running_config_cmd); - install_element(node, &autocomplete_cmd); + _install_element(node, &autocomplete_cmd); nb_cli_install_default(node); } |
