]>
Commit | Line | Data |
---|---|---|
13d60d35 | 1 | /* |
2 | * Zebra VxLAN (EVPN) | |
3 | * Copyright (C) 2016, 2017 Cumulus Networks, Inc. | |
4 | * | |
5 | * This file is part of FRR. | |
6 | * | |
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 | |
10 | * later version. | |
11 | * | |
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. | |
16 | * | |
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 | |
20 | * 02111-1307, USA. | |
21 | */ | |
22 | ||
23 | #include <zebra.h> | |
24 | ||
25 | #include "if.h" | |
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" | |
32 | ||
d62a17ae | 33 | void zebra_vxlan_print_macs_vni(struct vty *vty, struct zebra_vrf *zvrf, |
34 | vni_t vni) | |
cec2e17d | 35 | { |
36 | } | |
37 | ||
d62a17ae | 38 | void zebra_vxlan_print_macs_all_vni(struct vty *vty, struct zebra_vrf *zvrf) |
cec2e17d | 39 | { |
40 | } | |
41 | ||
d62a17ae | 42 | void zebra_vxlan_print_macs_all_vni_vtep(struct vty *vty, |
43 | struct zebra_vrf *zvrf, | |
44 | struct in_addr vtep_ip) | |
cec2e17d | 45 | { |
46 | } | |
47 | ||
d62a17ae | 48 | void zebra_vxlan_print_specific_mac_vni(struct vty *vty, struct zebra_vrf *zvrf, |
49 | vni_t vni, struct ethaddr *mac) | |
cec2e17d | 50 | { |
51 | } | |
52 | ||
d62a17ae | 53 | void zebra_vxlan_print_macs_vni_vtep(struct vty *vty, struct zebra_vrf *zvrf, |
54 | vni_t vni, struct in_addr vtep_ip) | |
cec2e17d | 55 | { |
56 | } | |
57 | ||
d62a17ae | 58 | void zebra_vxlan_print_neigh_vni(struct vty *vty, struct zebra_vrf *zvrf, |
59 | vni_t vni) | |
cec2e17d | 60 | { |
61 | } | |
62 | ||
d62a17ae | 63 | void zebra_vxlan_print_neigh_all_vni(struct vty *vty, struct zebra_vrf *zvrf) |
cec2e17d | 64 | { |
65 | } | |
66 | ||
d62a17ae | 67 | void zebra_vxlan_print_specific_neigh_vni(struct vty *vty, |
68 | struct zebra_vrf *zvrf, vni_t vni, | |
69 | struct ipaddr *ip) | |
cec2e17d | 70 | { |
71 | } | |
72 | ||
d62a17ae | 73 | void zebra_vxlan_print_neigh_vni_vtep(struct vty *vty, struct zebra_vrf *zvrf, |
74 | vni_t vni, struct in_addr vtep_ip) | |
cec2e17d | 75 | { |
76 | } | |
77 | ||
d62a17ae | 78 | void zebra_vxlan_print_vni(struct vty *vty, struct zebra_vrf *zvrf, vni_t vni) |
cec2e17d | 79 | { |
80 | } | |
81 | ||
d62a17ae | 82 | void zebra_vxlan_print_vnis(struct vty *vty, struct zebra_vrf *zvrf) |
cec2e17d | 83 | { |
84 | } | |
85 | ||
d62a17ae | 86 | int zebra_vxlan_svi_up(struct interface *ifp, struct interface *link_if) |
2232a77c | 87 | { |
d62a17ae | 88 | return 0; |
2232a77c | 89 | } |
90 | ||
d62a17ae | 91 | int zebra_vxlan_svi_down(struct interface *ifp, struct interface *link_if) |
2232a77c | 92 | { |
d62a17ae | 93 | return 0; |
2232a77c | 94 | } |
95 | ||
d62a17ae | 96 | int zebra_vxlan_remote_macip_add(struct zserv *client, int sock, u_short length, |
97 | struct zebra_vrf *zvrf) | |
2232a77c | 98 | { |
d62a17ae | 99 | return 0; |
2232a77c | 100 | } |
101 | ||
d62a17ae | 102 | int zebra_vxlan_remote_macip_del(struct zserv *client, int sock, u_short length, |
103 | struct zebra_vrf *zvrf) | |
2232a77c | 104 | { |
d62a17ae | 105 | return 0; |
2232a77c | 106 | } |
107 | ||
d62a17ae | 108 | int zebra_vxlan_local_mac_add_update(struct interface *ifp, |
109 | struct interface *br_if, | |
110 | struct ethaddr *mac, vlanid_t vid, | |
111 | u_char sticky) | |
2232a77c | 112 | { |
d62a17ae | 113 | return 0; |
2232a77c | 114 | } |
115 | ||
d62a17ae | 116 | int zebra_vxlan_local_mac_del(struct interface *ifp, struct interface *br_if, |
117 | struct ethaddr *mac, vlanid_t vid) | |
2232a77c | 118 | { |
d62a17ae | 119 | return 0; |
2232a77c | 120 | } |
121 | ||
d62a17ae | 122 | int zebra_vxlan_check_readd_remote_mac(struct interface *ifp, |
123 | struct interface *br_if, | |
124 | struct ethaddr *mac, vlanid_t vid) | |
2232a77c | 125 | { |
d62a17ae | 126 | return 0; |
2232a77c | 127 | } |
128 | ||
d62a17ae | 129 | int zebra_vxlan_check_del_local_mac(struct interface *ifp, |
130 | struct interface *br_if, | |
131 | struct ethaddr *mac, vlanid_t vid) | |
2232a77c | 132 | { |
d62a17ae | 133 | return 0; |
2232a77c | 134 | } |
135 | ||
d62a17ae | 136 | int zebra_vxlan_if_up(struct interface *ifp) |
13d60d35 | 137 | { |
d62a17ae | 138 | return 0; |
13d60d35 | 139 | } |
140 | ||
d62a17ae | 141 | int zebra_vxlan_if_down(struct interface *ifp) |
13d60d35 | 142 | { |
d62a17ae | 143 | return 0; |
13d60d35 | 144 | } |
145 | ||
d62a17ae | 146 | int zebra_vxlan_if_add(struct interface *ifp) |
13d60d35 | 147 | { |
d62a17ae | 148 | return 0; |
13d60d35 | 149 | } |
150 | ||
d62a17ae | 151 | int zebra_vxlan_if_update(struct interface *ifp, u_int16_t chgflags) |
13d60d35 | 152 | { |
d62a17ae | 153 | return 0; |
13d60d35 | 154 | } |
155 | ||
d62a17ae | 156 | int zebra_vxlan_if_del(struct interface *ifp) |
13d60d35 | 157 | { |
d62a17ae | 158 | return 0; |
13d60d35 | 159 | } |
160 | ||
d62a17ae | 161 | int zebra_vxlan_remote_vtep_add(struct zserv *client, int sock, u_short length, |
162 | struct zebra_vrf *zvrf) | |
13d60d35 | 163 | { |
d62a17ae | 164 | return 0; |
13d60d35 | 165 | } |
166 | ||
d62a17ae | 167 | int zebra_vxlan_remote_vtep_del(struct zserv *client, int sock, u_short length, |
168 | struct zebra_vrf *zvrf) | |
13d60d35 | 169 | { |
d62a17ae | 170 | return 0; |
13d60d35 | 171 | } |
172 | ||
d62a17ae | 173 | int zebra_vxlan_advertise_all_vni(struct zserv *client, int sock, |
174 | u_short length, struct zebra_vrf *zvrf) | |
13d60d35 | 175 | { |
d62a17ae | 176 | return 0; |
13d60d35 | 177 | } |
178 | ||
d62a17ae | 179 | void zebra_vxlan_init_tables(struct zebra_vrf *zvrf) |
13d60d35 | 180 | { |
181 | } | |
182 | ||
d62a17ae | 183 | void zebra_vxlan_close_tables(struct zebra_vrf *zvrf) |
13d60d35 | 184 | { |
185 | } |