#include "vty.h"
#include "ldp_vty.h"
-static int interface_config_write(struct vty *);
static void ldp_af_iface_config_write(struct vty *, int);
static void ldp_af_config_write(struct vty *, int, struct ldpd_conf *,
struct ldpd_af_conf *);
static struct l2vpn *vty_l2vpn;
static struct l2vpn_pw *vty_pw;
-static struct cmd_node interface_node =
-{
- INTERFACE_NODE,
- "%s(config-if)# ",
- 1
-};
-
struct cmd_node ldp_node =
{
LDP_NODE,
return (-1);
}
-static int
-interface_config_write(struct vty *vty)
-{
- struct listnode *node;
- struct interface *ifp;
- int write = 0;
-
- for (ALL_LIST_ELEMENTS_RO(vrf_iflist (VRF_DEFAULT), node, ifp)) {
- vty_out(vty, "!%s", VTY_NEWLINE);
- vty_out(vty, "interface %s%s", ifp->name, VTY_NEWLINE);
- if (ifp->desc)
- vty_out(vty, " description %s%s", ifp->desc,
- VTY_NEWLINE);
-
- write++;
- }
-
- return (write);
-}
-
static void
ldp_af_iface_config_write(struct vty *vty, int af)
{
return (CMD_SUCCESS);
}
-void
-ldp_vty_if_init(void)
-{
- /* Install interface node. */
- install_node (&interface_node, interface_config_write);
- if_cmd_init ();
-}
-
struct iface *
iface_new_api(struct ldpd_conf *conf, const char *name)
{
}
/* TODO Implement "no interface command in isisd. */
-DEFSH (VTYSH_ZEBRA|VTYSH_RIPD|VTYSH_RIPNGD|VTYSH_OSPFD|VTYSH_OSPF6D|VTYSH_LDPD,
+DEFSH (VTYSH_ZEBRA|VTYSH_RIPD|VTYSH_RIPNGD|VTYSH_OSPFD|VTYSH_OSPF6D,
vtysh_no_interface_cmd,
"no interface IFNAME",
NO_STR
/* TODO Implement interface description commands in ripngd, ospf6d
* and isisd. */
-DEFSH (VTYSH_ZEBRA|VTYSH_RIPD|VTYSH_OSPFD|VTYSH_LDPD,
+DEFSH (VTYSH_ZEBRA|VTYSH_RIPD|VTYSH_OSPFD,
vtysh_interface_desc_cmd,
"description LINE...",
"Interface specific description\n"
* things like prefix lists are not even initialised) */
#define VTYSH_ALL VTYSH_ZEBRA|VTYSH_RIPD|VTYSH_RIPNGD|VTYSH_OSPFD|VTYSH_OSPF6D|VTYSH_LDPD|VTYSH_BGPD|VTYSH_ISISD|VTYSH_PIMD|VTYSH_NHRPD
#define VTYSH_RMAP VTYSH_ZEBRA|VTYSH_RIPD|VTYSH_RIPNGD|VTYSH_OSPFD|VTYSH_OSPF6D|VTYSH_BGPD|VTYSH_PIMD
-#define VTYSH_INTERFACE VTYSH_ZEBRA|VTYSH_RIPD|VTYSH_RIPNGD|VTYSH_OSPFD|VTYSH_OSPF6D|VTYSH_LDPD|VTYSH_ISISD|VTYSH_PIMD|VTYSH_NHRPD
+#define VTYSH_INTERFACE VTYSH_ZEBRA|VTYSH_RIPD|VTYSH_RIPNGD|VTYSH_OSPFD|VTYSH_OSPF6D|VTYSH_ISISD|VTYSH_PIMD|VTYSH_NHRPD
#define VTYSH_NS VTYSH_ZEBRA
#define VTYSH_VRF VTYSH_ZEBRA