diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2019-09-24 10:44:58 +0200 |
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2020-05-18 14:11:03 +0200 |
| commit | 14ddb3d9c42a9845d1a7443b9231f92bc80b4f2d (patch) | |
| tree | 64fea7d76cc39dc21aea4780ec56aff9c88d6480 /zebra/interface.c | |
| parent | 0591d71e92e25cfaa2b557147b01e115029eb1cb (diff) | |
zebra: across network namespace, vxlan remembers the link information
the link information of vxlan interface is populated in layer 2
information, as well as in layer 2 vxlan information. This information
will be used later to collect vnis that are in other network namespaces,
but where bgp evpn is enabled on main network namespaces, and those vnis
have the link information in that namespace.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'zebra/interface.c')
| -rw-r--r-- | zebra/interface.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/zebra/interface.c b/zebra/interface.c index 9a248ba5d1..b2a309be9e 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -1488,6 +1488,17 @@ static void if_dump_vty(struct vty *vty, struct interface *ifp) if (vxlan_info->mcast_grp.s_addr != INADDR_ANY) vty_out(vty, " Mcast Group %s", inet_ntoa(vxlan_info->mcast_grp)); + if (vxlan_info->ifindex_link && + (vxlan_info->link_nsid != NS_UNKNOWN)) { + struct interface *ifp; + + ifp = if_lookup_by_index_per_ns( + zebra_ns_lookup(vxlan_info->link_nsid), + vxlan_info->ifindex_link); + vty_out(vty, " Link Interface %s", + ifp == NULL ? "Unknown" : + ifp->name); + } vty_out(vty, "\n"); } |
