Skip to content

Commit

Permalink
Merge pull request FRRouting#16911 from donaldsharp/command_node_is_fun
Browse files Browse the repository at this point in the history
Command node is fun
  • Loading branch information
Jafaral authored Sep 25, 2024
2 parents c0ccf38 + d722e99 commit 57946f9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
2 changes: 0 additions & 2 deletions lib/command.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ enum node_type {
INTERFACE_NODE, /* Interface mode node. */
NH_GROUP_NODE, /* Nexthop-Group mode node. */
ZEBRA_NODE, /* zebra connection node. */
TABLE_NODE, /* rtm_table selection node. */
RIP_NODE, /* RIP protocol mode node. */
RIPNG_NODE, /* RIPng protocol mode node. */
BABEL_NODE, /* BABEL protocol mode node. */
Expand All @@ -118,7 +117,6 @@ enum node_type {
BGP_VNC_DEFAULTS_NODE, /* BGP VNC nve defaults */
BGP_VNC_NVE_GROUP_NODE, /* BGP VNC nve group */
BGP_VNC_L2_GROUP_NODE, /* BGP VNC L2 group */
RFP_DEFAULTS_NODE, /* RFP defaults node */
BGP_EVPN_NODE, /* BGP EVPN node. */
BGP_SRV6_NODE, /* BGP SRv6 node. */
OSPF_NODE, /* OSPF protocol mode */
Expand Down
15 changes: 0 additions & 15 deletions zebra/zebra_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -4151,12 +4151,6 @@ DEFUN (zebra_show_routing_tables_summary,
return CMD_SUCCESS;
}

/* Table configuration write function. */
static int config_write_table(struct vty *vty)
{
return 0;
}

/* IPForwarding configuration write function. */
static int config_write_forwarding(struct vty *vty)
{
Expand Down Expand Up @@ -4333,14 +4327,6 @@ static struct cmd_node protocol_node = {
.prompt = "",
.config_write = config_write_protocol,
};
/* table node for routing tables. */
static int config_write_table(struct vty *vty);
static struct cmd_node table_node = {
.name = "table",
.node = TABLE_NODE,
.prompt = "",
.config_write = config_write_table,
};
static int config_write_forwarding(struct vty *vty);
static struct cmd_node forwarding_node = {
.name = "forwarding",
Expand All @@ -4353,7 +4339,6 @@ static struct cmd_node forwarding_node = {
void zebra_vty_init(void)
{
/* Install configuration write function. */
install_node(&table_node);
install_node(&forwarding_node);

install_element(VIEW_NODE, &show_ip_forwarding_cmd);
Expand Down

0 comments on commit 57946f9

Please sign in to comment.