From 6675513d00b8cb59942ecb05f990852d14ef3e41 Mon Sep 17 00:00:00 2001 From: vivek Date: Sun, 14 May 2017 22:31:08 -0700 Subject: zebra: Layer-2 interface handling Define interface types of interest and recognize the types. Store layer-2 information (VLAN Id, VNI etc.) for interfaces, process bridge interfaces and map bridge members to bridge. Display all the additional information to user (through "show interface"). Note: Only implemented for the netlink interface. Signed-off-by: Vivek Venkatraman Reviewed-by: Donald Sharp --- zebra/zebra_l2_null.c | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 zebra/zebra_l2_null.c (limited to 'zebra/zebra_l2_null.c') diff --git a/zebra/zebra_l2_null.c b/zebra/zebra_l2_null.c new file mode 100644 index 000000000..d50107f65 --- /dev/null +++ b/zebra/zebra_l2_null.c @@ -0,0 +1,76 @@ +/* + * Zebra Layer-2 interface Data structures and definitions + * Copyright (C) 2016, 2017 Cumulus Networks, Inc. + * + * This file is part of FRR. + * + * FRR is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2, or (at your option) any + * later version. + * + * FRR is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with FRR; see the file COPYING. If not, write to the Free + * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + */ + +#include + +#include "if.h" +#include "zebra/debug.h" +#include "zebra/zserv.h" +#include "zebra/rib.h" +#include "zebra/zebra_vrf.h" +#include "zebra/zebra_l2.h" + +void zebra_l2_map_slave_to_bridge (struct zebra_l2info_brslave *br_slave) +{ +} + +void +zebra_l2_unmap_slave_from_bridge (struct zebra_l2info_brslave *br_slave) +{ +} + +void zebra_l2_bridge_add_update (struct interface *ifp, + struct zebra_l2info_bridge *bridge_info, + int add) +{ +} + +void zebra_l2_bridge_del (struct interface *ifp) +{ +} + +void zebra_l2_vlanif_update (struct interface *ifp, + struct zebra_l2info_vlan *vlan_info) +{ +} + +void zebra_l2_vxlanif_add_update (struct interface *ifp, + struct zebra_l2info_vxlan *vxlan_info, + int add) +{ +} + +void +zebra_l2_vxlanif_update_access_vlan (struct interface *ifp, + vlanid_t access_vlan) +{ +} + +void zebra_l2_vxlanif_del (struct interface *ifp) +{ +} + +void +zebra_l2if_update_bridge_slave (struct interface *ifp, + ifindex_t bridge_ifindex) +{ +} -- cgit v1.2.3