diff options
author | paul <paul> | 2003-05-23 09:21:46 +0000 |
---|---|---|
committer | paul <paul> | 2003-05-23 09:21:46 +0000 |
commit | 7515cffe5e11fdfbc437c02b7af8b0f7b4d36fce (patch) | |
tree | 9acbaf0a01080920f25cf1107465a7f79ee7e2f8 /lib | |
parent | 1921e6f8965701040fe1b4f27619b2d7f3fec254 (diff) |
Undo Hasso last patch, about to apply a slightly updated patch.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/if.c | 26 | ||||
-rw-r--r-- | lib/if.h | 1 |
2 files changed, 0 insertions, 27 deletions
@@ -440,32 +440,6 @@ DEFUN (interface, return CMD_SUCCESS; } -DEFUN_NOSH (no_interface, - no_interface_cmd, - "no interface IFNAME", - NO_STR - "Delete a pseudo interface's configuration\n" - "Interface's name\n") -{ - // deleting interface - struct interface *ifp; - - ifp = if_lookup_by_name (argv[0]); - - if (ifp == NULL) - return CMD_SUCCESS; - - if (if_is_up(ifp)) { - vty_out (vty, "%% Only inactive interfaces can be deleted%s", - VTY_NEWLINE); - return CMD_WARNING; - } - - if_delete(ifp); - - return CMD_SUCCESS; -} - /* For debug purpose. */ DEFUN (show_address, show_address_cmd, @@ -220,7 +220,6 @@ extern list iflist; extern struct cmd_element interface_desc_cmd; extern struct cmd_element no_interface_desc_cmd; extern struct cmd_element interface_cmd; -extern struct cmd_element no_interface_cmd; extern struct cmd_element interface_pseudo_cmd; extern struct cmd_element no_interface_pseudo_cmd; |