]> git.proxmox.com Git - mirror_frr.git/blame - zebra/zebra_l2_bridge_if.h
zebra: On shutdown stop hook calls for fpm rmac updates
[mirror_frr.git] / zebra / zebra_l2_bridge_if.h
CommitLineData
239b26f9
SR
1/*
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.
5 * Sharath Ramamurthy
6 *
7 * This file is part of FRR.
8 *
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
12 * later version.
13 *
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.
18 *
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
22 * 02111-1307, USA.
23 */
24
25#ifndef _ZEBRA_L2_BRIDGE_IF_H
26#define _ZEBRA_L2_BRIDGE_IF_H
27
28#include <zebra.h>
29#include <zebra/zebra_router.h>
30
31#include "linklist.h"
32#include "if.h"
33#include "vlan.h"
34#include "vxlan.h"
35
36#include "lib/json.h"
37#include "zebra/zebra_vrf.h"
38#include "zebra/zserv.h"
39
40#include "zebra/zebra_dplane.h"
41
42#ifdef __cplusplus
43extern "C" {
44#endif
45
46/* Bridge interface change flags of interest. */
47#define ZEBRA_BRIDGEIF_ACCESS_BD_CHANGE (1 << 0)
48
49extern struct zebra_l2_bridge_vlan *
50zebra_l2_bridge_if_vlan_find(const struct zebra_if *zif, vlanid_t vid);
51extern vni_t zebra_l2_bridge_if_vni_find(const struct zebra_if *zif,
52 vlanid_t vid);
53extern void zebra_l2_bridge_if_vlan_iterate(
54 struct zebra_if *zif,
55 int (*func)(struct zebra_if *zif, struct zebra_l2_bridge_vlan *,
56 void *),
57 void *arg);
58extern void
59zebra_l2_bridge_if_vlan_walk(struct zebra_if *zif,
60 int (*func)(struct zebra_if *zif,
61 struct zebra_l2_bridge_vlan *, void *),
62 void *arg);
63extern int
64zebra_l2_bridge_if_vlan_access_bd_deref(struct zebra_evpn_access_bd *bd);
65extern int
66zebra_l2_bridge_if_vlan_access_bd_ref(struct zebra_evpn_access_bd *bd);
67extern int zebra_l2_bridge_if_del(struct interface *ifp);
68extern int zebra_l2_bridge_if_add(struct interface *ifp);
69extern int zebra_l2_bridge_if_cleanup(struct interface *ifp);
70
71#ifdef __cplusplus
72}
73#endif
74
75#endif /* _ZEBRA_L2_BRIDGE_IF_H */