]>
git.proxmox.com Git - mirror_frr.git/blob - zebra/zebra_l2_bridge_if.h
2 * Zebra L2 bridge interface data structures and definitions
3 * These are public definitions referenced by other files.
4 * Copyright (C) 2021 Cumulus Networks, Inc.
7 * This file is part of FRR.
9 * FRR is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License as published by the
11 * Free Software Foundation; either version 2, or (at your option) any
14 * FRR is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with FRR; see the file COPYING. If not, write to the Free
21 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
25 #ifndef _ZEBRA_L2_BRIDGE_IF_H
26 #define _ZEBRA_L2_BRIDGE_IF_H
29 #include <zebra/zebra_router.h>
37 #include "zebra/zebra_vrf.h"
38 #include "zebra/zserv.h"
40 #include "zebra/zebra_dplane.h"
46 /* Bridge interface change flags of interest. */
47 #define ZEBRA_BRIDGEIF_ACCESS_BD_CHANGE (1 << 0)
49 extern struct zebra_l2_bridge_vlan
*
50 zebra_l2_bridge_if_vlan_find(const struct zebra_if
*zif
, vlanid_t vid
);
51 extern vni_t
zebra_l2_bridge_if_vni_find(const struct zebra_if
*zif
,
53 extern void zebra_l2_bridge_if_vlan_iterate(
55 int (*func
)(struct zebra_if
*zif
, struct zebra_l2_bridge_vlan
*,
59 zebra_l2_bridge_if_vlan_walk(struct zebra_if
*zif
,
60 int (*func
)(struct zebra_if
*zif
,
61 struct zebra_l2_bridge_vlan
*, void *),
64 zebra_l2_bridge_if_vlan_access_bd_deref(struct zebra_evpn_access_bd
*bd
);
66 zebra_l2_bridge_if_vlan_access_bd_ref(struct zebra_evpn_access_bd
*bd
);
67 extern int zebra_l2_bridge_if_del(struct interface
*ifp
);
68 extern int zebra_l2_bridge_if_add(struct interface
*ifp
);
69 extern int zebra_l2_bridge_if_cleanup(struct interface
*ifp
);
75 #endif /* _ZEBRA_L2_BRIDGE_IF_H */