From 60c35a86de697a5ea2de2345b286344849733a0c Mon Sep 17 00:00:00 2001 From: yenlu Date: Wed, 1 Nov 2023 15:22:08 -0700 Subject: [PATCH] zebra: Support to listen teamd nlmsg as bond type this feature is to support teamd driver when configuring ethernet segment's id and sys_mac via vtysh/zebra. Signed-off-by: yenlu --- zebra/if_netlink.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zebra/if_netlink.c b/zebra/if_netlink.c index ed2e0a224e..a62c17fe4a 100644 --- a/zebra/if_netlink.c +++ b/zebra/if_netlink.c @@ -215,6 +215,8 @@ 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, "team") == 0) + *zif_type = ZEBRA_IF_BOND; else if (strcmp(kind, "gre") == 0) *zif_type = ZEBRA_IF_GRE; }