Skip to content

Commit

Permalink
Merge pull request FRRouting#13545 from idryzhov/remove-bond-slave
Browse files Browse the repository at this point in the history
zebra: remove ZEBRA_IF_BOND_SLAVE interface type
  • Loading branch information
ton31337 authored Jun 23, 2023
2 parents 0951530 + 9ce24c3 commit 3cbc715
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
7 changes: 1 addition & 6 deletions zebra/if_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,6 @@ static void netlink_determine_zebra_iftype(const char *kind,
*zif_type = ZEBRA_IF_VETH;
else if (strcmp(kind, "bond") == 0)
*zif_type = ZEBRA_IF_BOND;
else if (strcmp(kind, "bond_slave") == 0)
*zif_type = ZEBRA_IF_BOND_SLAVE;
else if (strcmp(kind, "gre") == 0)
*zif_type = ZEBRA_IF_GRE;
}
Expand Down Expand Up @@ -1120,10 +1118,7 @@ static int netlink_interface(struct nlmsghdr *h, ns_id_t ns_id, int startup)
if (linkinfo[IFLA_INFO_SLAVE_KIND])
slave_kind = RTA_DATA(linkinfo[IFLA_INFO_SLAVE_KIND]);

if ((slave_kind != NULL) && strcmp(slave_kind, "bond") == 0)
netlink_determine_zebra_iftype("bond_slave", &zif_type);
else
netlink_determine_zebra_iftype(kind, &zif_type);
netlink_determine_zebra_iftype(kind, &zif_type);
}

/* If VRF, create the VRF structure itself. */
Expand Down
3 changes: 0 additions & 3 deletions zebra/interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1701,9 +1701,6 @@ static const char *zebra_ziftype_2str(enum zebra_iftype zif_type)
case ZEBRA_IF_BOND:
return "bond";

case ZEBRA_IF_BOND_SLAVE:
return "bond_slave";

case ZEBRA_IF_MACVLAN:
return "macvlan";

Expand Down
1 change: 0 additions & 1 deletion zebra/interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ enum zebra_iftype {
ZEBRA_IF_MACVLAN, /* MAC VLAN interface*/
ZEBRA_IF_VETH, /* VETH interface*/
ZEBRA_IF_BOND, /* Bond */
ZEBRA_IF_BOND_SLAVE, /* Bond */
ZEBRA_IF_GRE, /* GRE interface */
};

Expand Down

0 comments on commit 3cbc715

Please sign in to comment.