]>
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 void zebra_vxlan_print_evpn(struct vty
*vty
, bool uj
)
90 void zebra_vxlan_print_rmacs_l3vni(struct vty
*, vni_t
, uint8_t)
94 void zebra_vxlan_print_rmacs_all_l3vni(struct vty
*, uint8_t)
98 void zebra_vxlan_print_nh_l3vni(struct vty
*, vni_t
, uint8_t)
102 void zebra_vxlan_print_nh_all_l3vni(struct vty
*, uint8_t)
106 void zebra_vxlan_print_l3vni(struct vty
*vty
, vni_t vni
)
110 int zebra_vxlan_svi_up(struct interface
*ifp
, struct interface
*link_if
)
115 int zebra_vxlan_svi_down(struct interface
*ifp
, struct interface
*link_if
)
120 int zebra_vxlan_remote_macip_add(struct zserv
*client
, int sock
,
121 unsigned short length
, struct zebra_vrf
*zvrf
)
126 int zebra_vxlan_remote_macip_del(struct zserv
*client
, int sock
,
127 unsigned short length
, struct zebra_vrf
*zvrf
)
132 int zebra_vxlan_local_mac_add_update(struct interface
*ifp
,
133 struct interface
*br_if
,
134 struct ethaddr
*mac
, vlanid_t vid
,
140 int zebra_vxlan_local_mac_del(struct interface
*ifp
, struct interface
*br_if
,
141 struct ethaddr
*mac
, vlanid_t vid
)
146 int zebra_vxlan_check_readd_remote_mac(struct interface
*ifp
,
147 struct interface
*br_if
,
148 struct ethaddr
*mac
, vlanid_t vid
)
153 int zebra_vxlan_check_del_local_mac(struct interface
*ifp
,
154 struct interface
*br_if
,
155 struct ethaddr
*mac
, vlanid_t vid
)
160 int zebra_vxlan_if_up(struct interface
*ifp
)
165 int zebra_vxlan_if_down(struct interface
*ifp
)
170 int zebra_vxlan_if_add(struct interface
*ifp
)
175 int zebra_vxlan_if_update(struct interface
*ifp
, uint16_t chgflags
)
180 int zebra_vxlan_if_del(struct interface
*ifp
)
185 int zebra_vxlan_remote_vtep_add(struct zserv
*client
, int sock
,
186 unsigned short length
, struct zebra_vrf
*zvrf
)
191 int zebra_vxlan_remote_vtep_del(struct zserv
*client
, int sock
,
192 unsigned short length
, struct zebra_vrf
*zvrf
)
197 int zebra_vxlan_advertise_all_vni(struct zserv
*client
, int sock
,
198 unsigned short length
, struct zebra_vrf
*zvrf
)
203 void zebra_vxlan_init_tables(struct zebra_vrf
*zvrf
)
207 void zebra_vxlan_close_tables(struct zebra_vrf
*zvrf
)
211 void zebra_vxlan_cleanup_tables(struct zebra_vrf
*zvrf
)