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;
|
return CMD_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
DEFUN(show_interface, show_interface_cmd,
|
DEFUN(info_interface, info_interface_cmd,
|
||||||
"show interface",
|
"info",
|
||||||
SHOW_STR "Show interface and states")
|
"Show interface information and states")
|
||||||
{
|
{
|
||||||
struct v5x_interface *v5if = vty->index;
|
struct v5x_interface *v5if = vty->index;
|
||||||
struct v5x_link *v5l;
|
struct v5x_link *v5l;
|
||||||
|
@ -1297,7 +1297,7 @@ int v5le_vty_init(void)
|
||||||
{
|
{
|
||||||
install_element(ENABLE_NODE, &interface_cmd);
|
install_element(ENABLE_NODE, &interface_cmd);
|
||||||
install_node(&interface_node, NULL);
|
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_link_cmd);
|
||||||
install_element(INTERFACE_NODE, &show_port_cmd);
|
install_element(INTERFACE_NODE, &show_port_cmd);
|
||||||
install_element(INTERFACE_NODE, &show_port_pstn_cmd);
|
install_element(INTERFACE_NODE, &show_port_pstn_cmd);
|
||||||
|
|
Loading…
Reference in New Issue