summaryrefslogtreecommitdiffstats
path: root/lib/if.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/if.c')
-rw-r--r--lib/if.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/if.c b/lib/if.c
index 048ee1fb..23d35054 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -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;
}