diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2023-05-17 17:30:02 +0000 |
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2023-05-21 23:37:39 +0300 |
| commit | 9ce24c31bf6b7b67c23cccb2c07be90c3a5c3e4b (patch) | |
| tree | 9625281b98baeeda2b257abee041534fd3e18b4a /zebra/if_netlink.c | |
| parent | c4676ad9174a524161b5902b8561cd53ba2ac1f0 (diff) | |
zebra: remove ZEBRA_IF_BOND_SLAVE interface type
It is never actually used in the code.
Closes #13532.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'zebra/if_netlink.c')
| -rw-r--r-- | zebra/if_netlink.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/zebra/if_netlink.c b/zebra/if_netlink.c index fcb692b715..cd200d821d 100644 --- a/zebra/if_netlink.c +++ b/zebra/if_netlink.c @@ -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; } @@ -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. */ |
