summaryrefslogtreecommitdiff
path: root/zebra/if_netlink.c
diff options
context:
space:
mode:
authorvivek <vivek@cumulusnetworks.com>2017-05-14 22:38:26 -0700
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-07-12 12:26:02 -0400
commit13d60d351c4c70e8a2949ef45d88ec4efe382367 (patch)
treeb3846b88b4d3b03aa06801cac95d9a7992732076 /zebra/if_netlink.c
parent18a7a601c713ab1cc7fa91a7f883e18a25cc2fa1 (diff)
zebra: VNI and VTEP handling
Implement fundamental handling for VNIs and VTEPs: - Handle EVPN enable/disable by client (advertise-all-vni) - Create/update/delete VNIs based on VxLAN interface events and inform client - Handle VTEP add/delete from client and install into kernel - New debug command for VxLAN/EVPN - kernel interface (Linux/netlink only) Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/if_netlink.c')
-rw-r--r--zebra/if_netlink.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/zebra/if_netlink.c b/zebra/if_netlink.c
index 972e6447f6..d0907a2670 100644
--- a/zebra/if_netlink.c
+++ b/zebra/if_netlink.c
@@ -710,6 +710,15 @@ interface_lookup_netlink (struct zebra_ns *zns)
if (ret < 0)
return ret;
+ /* Get interface information - for bridge interfaces. */
+ ret = netlink_request_intf_addr (zns, AF_BRIDGE, RTM_GETLINK,
+ RTEXT_FILTER_BRVLAN);
+ if (ret < 0)
+ return ret;
+ ret = netlink_parse_info (netlink_interface, &zns->netlink_cmd, zns, 0, 0);
+ if (ret < 0)
+ return ret;
+
/* Get IPv4 address of the interfaces. */
ret = netlink_request_intf_addr (zns, AF_INET, RTM_GETADDR, 0);
if (ret < 0)