Rename "show" in interface node to "info" to prevent overlapping with default "show" command
This commit is contained in:
parent
22e1f73080
commit
b098e3a1a6
|
@ -171,9 +171,9 @@ DEFUN(interface, interface_cmd,
|
|||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
DEFUN(show_interface, show_interface_cmd,
|
||||
"show interface",
|
||||
SHOW_STR "Show interface and states")
|
||||
DEFUN(info_interface, info_interface_cmd,
|
||||
"info",
|
||||
"Show interface information and states")
|
||||
{
|
||||
struct v5x_interface *v5if = vty->index;
|
||||
struct v5x_link *v5l;
|
||||
|
@ -1297,7 +1297,7 @@ int v5le_vty_init(void)
|
|||
{
|
||||
install_element(ENABLE_NODE, &interface_cmd);
|
||||
install_node(&interface_node, NULL);
|
||||
install_element(INTERFACE_NODE, &show_interface_cmd);
|
||||
install_element(INTERFACE_NODE, &info_interface_cmd);
|
||||
install_element(INTERFACE_NODE, &show_link_cmd);
|
||||
install_element(INTERFACE_NODE, &show_port_cmd);
|
||||
install_element(INTERFACE_NODE, &show_port_pstn_cmd);
|
||||
|
|
Loading…
Reference in New Issue