diff options
Diffstat (limited to 'lib/if.c')
-rw-r--r-- | lib/if.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -532,11 +532,12 @@ if_sunwzebra_get (const char *name, size_t nlen) } #endif /* SUNOS_5 */ -DEFUN (interface, - interface_cmd, - "interface IFNAME", - "Select an interface to configure\n" - "Interface's name\n") +DEFUN_ATTR (interface, + interface_cmd, + "interface IFNAME", + "Select an interface to configure\n" + "Interface's name\n", + CMD_ATTR_NODE + INTERFACE_NODE) { struct interface *ifp; size_t sl; @@ -556,7 +557,7 @@ DEFUN (interface, #endif /* SUNOS_5 */ vty->index = ifp; - vty_set_node(vty, INTERFACE_NODE) ; + vty->node = INTERFACE_NODE ; return CMD_SUCCESS; } |