]>
git.proxmox.com Git - mirror_frr.git/blob - zebra/zebra_vxlan_null.c
3 * Copyright (C) 2016, 2017 Cumulus Networks, Inc.
5 * This file is part of FRR.
7 * FRR is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2, or (at your option) any
12 * FRR is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with FRR; see the file COPYING. If not, write to the Free
19 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
26 #include "zebra/debug.h"
27 #include "zebra/zserv.h"
28 #include "zebra/rib.h"
29 #include "zebra/zebra_vrf.h"
30 #include "zebra/zebra_l2.h"
31 #include "zebra/zebra_vxlan.h"
33 void zebra_vxlan_print_macs_vni(struct vty
*vty
, struct zebra_vrf
*zvrf
,
38 void zebra_vxlan_print_macs_all_vni(struct vty
*vty
, struct zebra_vrf
*zvrf
)
42 void zebra_vxlan_print_macs_all_vni_vtep(struct vty
*vty
,
43 struct zebra_vrf
*zvrf
,
44 struct in_addr vtep_ip
)
48 void zebra_vxlan_print_specific_mac_vni(struct vty
*vty
, struct zebra_vrf
*zvrf
,
49 vni_t vni
, struct ethaddr
*mac
)
53 void zebra_vxlan_print_macs_vni_vtep(struct vty
*vty
, struct zebra_vrf
*zvrf
,
54 vni_t vni
, struct in_addr vtep_ip
)
58 void zebra_vxlan_print_neigh_vni(struct vty
*vty
, struct zebra_vrf
*zvrf
,
63 void zebra_vxlan_print_neigh_all_vni(struct vty
*vty
, struct zebra_vrf
*zvrf
)
67 void zebra_vxlan_print_specific_neigh_vni(struct vty
*vty
,
68 struct zebra_vrf
*zvrf
, vni_t vni
,
73 void zebra_vxlan_print_neigh_vni_vtep(struct vty
*vty
, struct zebra_vrf
*zvrf
,
74 vni_t vni
, struct in_addr vtep_ip
)
78 void zebra_vxlan_print_vni(struct vty
*vty
, struct zebra_vrf
*zvrf
, vni_t vni
)
82 void zebra_vxlan_print_vnis(struct vty
*vty
, struct zebra_vrf
*zvrf
)
86 int zebra_vxlan_svi_up(struct interface
*ifp
, struct interface
*link_if
)
91 int zebra_vxlan_svi_down(struct interface
*ifp
, struct interface
*link_if
)
96 int zebra_vxlan_remote_macip_add(struct zserv
*client
, int sock
, u_short length
,
97 struct zebra_vrf
*zvrf
)
102 int zebra_vxlan_remote_macip_del(struct zserv
*client
, int sock
, u_short length
,
103 struct zebra_vrf
*zvrf
)
108 int zebra_vxlan_local_mac_add_update(struct interface
*ifp
,
109 struct interface
*br_if
,
110 struct ethaddr
*mac
, vlanid_t vid
,
116 int zebra_vxlan_local_mac_del(struct interface
*ifp
, struct interface
*br_if
,
117 struct ethaddr
*mac
, vlanid_t vid
)
122 int zebra_vxlan_check_readd_remote_mac(struct interface
*ifp
,
123 struct interface
*br_if
,
124 struct ethaddr
*mac
, vlanid_t vid
)
129 int zebra_vxlan_check_del_local_mac(struct interface
*ifp
,
130 struct interface
*br_if
,
131 struct ethaddr
*mac
, vlanid_t vid
)
136 int zebra_vxlan_if_up(struct interface
*ifp
)
141 int zebra_vxlan_if_down(struct interface
*ifp
)
146 int zebra_vxlan_if_add(struct interface
*ifp
)
151 int zebra_vxlan_if_update(struct interface
*ifp
, u_int16_t chgflags
)
156 int zebra_vxlan_if_del(struct interface
*ifp
)
161 int zebra_vxlan_remote_vtep_add(struct zserv
*client
, int sock
, u_short length
,
162 struct zebra_vrf
*zvrf
)
167 int zebra_vxlan_remote_vtep_del(struct zserv
*client
, int sock
, u_short length
,
168 struct zebra_vrf
*zvrf
)
173 int zebra_vxlan_advertise_all_vni(struct zserv
*client
, int sock
,
174 u_short length
, struct zebra_vrf
*zvrf
)
179 void zebra_vxlan_init_tables(struct zebra_vrf
*zvrf
)
183 void zebra_vxlan_close_tables(struct zebra_vrf
*zvrf
)