summaryrefslogtreecommitdiffstats
path: root/vtysh/vtysh.c
diff options
context:
space:
mode:
authorpaul <paul>2003-05-23 09:25:20 +0000
committerpaul <paul>2003-05-23 09:25:20 +0000
commit2d644feaa230afa70ff9fce6c900f270eb0ca06b (patch)
tree1de9b533bffd6ee7a978054d1084e701f0eeb5e0 /vtysh/vtysh.c
parent3e0bc3be5904e3eccca6a0e7e52f51a425f43600 (diff)
downloadquagga-2d644feaa230afa70ff9fce6c900f270eb0ca06b.tar.bz2
quagga-2d644feaa230afa70ff9fce6c900f270eb0ca06b.tar.xz
From: Hasso Tepper <hasso@estpak.ee>
Add the 'no interface' command to all the daemons and vtysh. now it's possible to delete interface from routeing daemons as well only if it doesn't exist in os. http://hasso.linux.ee/zebra/ht-no_interface_fix.patch
Diffstat (limited to 'vtysh/vtysh.c')
-rw-r--r--vtysh/vtysh.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index be1f03e4..f6ab6035 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -1165,6 +1165,13 @@ DEFUNSH (VTYSH_ZEBRA|VTYSH_RIPD|VTYSH_OSPFD|VTYSH_OSPF6D,
return CMD_SUCCESS;
}
+DEFSH (VTYSH_ZEBRA|VTYSH_RIPD|VTYSH_RIPNGD|VTYSH_OSPFD|VTYSH_OSPF6D,
+ vtysh_no_interface_cmd,
+ "no interface IFNAME",
+ NO_STR
+ "Delete a pseudo interface's configuration\n"
+ "Interface's name\n")
+
DEFSH (VTYSH_ZEBRA|VTYSH_RIPD|VTYSH_OSPFD,
interface_desc_cmd,
"description .LINE",
@@ -1838,6 +1845,7 @@ vtysh_init_vty ()
install_element (KEYCHAIN_NODE, &key_chain_cmd);
install_element (KEYCHAIN_KEY_NODE, &key_chain_cmd);
install_element (CONFIG_NODE, &vtysh_interface_cmd);
+ install_element (CONFIG_NODE, &vtysh_no_interface_cmd);
install_element (ENABLE_NODE, &vtysh_show_running_config_cmd);
install_element (ENABLE_NODE, &vtysh_copy_runningconfig_startupconfig_cmd);
install_element (ENABLE_NODE, &vtysh_write_file_cmd);