]> git.proxmox.com Git - mirror_frr.git/blob - zebra/zebra_mpls_null.c
Merge remote-tracking branch 'origin/stable/2.0'
[mirror_frr.git] / zebra / zebra_mpls_null.c
1 /*
2 * Copyright (C) 2016 by Open Source Routing.
3 *
4 * This file is part of GNU Zebra.
5 *
6 * GNU Zebra is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2, or (at your option) any
9 * later version.
10 *
11 * GNU Zebra is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; see the file COPYING; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21 #include <zebra.h>
22 #include "zebra/rt.h"
23 #include "zebra/zebra_mpls.h"
24
25 int kernel_add_lsp (zebra_lsp_t *lsp) { return 0; }
26 int kernel_upd_lsp (zebra_lsp_t *lsp) { return 0; }
27 int kernel_del_lsp (zebra_lsp_t *lsp) { return 0; }
28 int mpls_kernel_init (void) { return -1; };
29
30 int mpls_enabled;
31
32 char *
33 mpls_label2str (u_int8_t num_labels, mpls_label_t *labels,
34 char *buf, int len, int pretty)
35 {
36 return NULL;
37 }
38
39 int
40 mpls_str2label (const char *label_str, u_int8_t *num_labels,
41 mpls_label_t *labels)
42 {
43 return 0;
44 }
45
46 int
47 zebra_mpls_label_block_add (struct zebra_vrf *vrf, u_int32_t start_label,
48 u_int32_t end_label)
49 {
50 return 0;
51 }
52
53 int
54 zebra_mpls_label_block_del (struct zebra_vrf *zvrf)
55 {
56 return 0;
57 }
58
59 int
60 zebra_mpls_write_label_block_config (struct vty *vty, struct zebra_vrf *zvrf)
61 {
62 return 0;
63 }
64
65 int
66 zebra_mpls_lsp_install (struct zebra_vrf *zvrf, struct route_node *rn, struct rib *rib)
67 {
68 return 0;
69 }
70
71 int
72 zebra_mpls_lsp_uninstall (struct zebra_vrf *zvrf, struct route_node *rn, struct rib *rib)
73 {
74 return 0;
75 }
76
77 void
78 zebra_mpls_init_tables (struct zebra_vrf *zvrf)
79 {
80 }
81
82 void
83 zebra_mpls_print_lsp (struct vty *vty, struct zebra_vrf *zvrf, mpls_label_t label,
84 u_char use_json)
85 {
86 }
87
88 void
89 zebra_mpls_print_lsp_table (struct vty *vty, struct zebra_vrf *zvrf,
90 u_char use_json)
91 {
92 }
93
94 int
95 zebra_mpls_write_lsp_config (struct vty *vty, struct zebra_vrf *zvrf)
96 {
97 return 0;
98 }
99
100 #ifdef HAVE_CUMULUS
101 int
102 zebra_mpls_lsp_label_consistent (struct zebra_vrf *zvrf, mpls_label_t in_label,
103 mpls_label_t out_label, enum nexthop_types_t gtype,
104 union g_addr *gate, ifindex_t ifindex)
105 {
106 return 0;
107 }
108 #endif
109
110 int
111 zebra_mpls_static_lsp_add (struct zebra_vrf *zvrf, mpls_label_t in_label,
112 mpls_label_t out_label, enum nexthop_types_t gtype,
113 union g_addr *gate, ifindex_t ifindex)
114 {
115 return 0;
116 }
117
118 int
119 zebra_mpls_static_lsp_del (struct zebra_vrf *zvrf, mpls_label_t in_label,
120 enum nexthop_types_t gtype, union g_addr *gate,
121 ifindex_t ifindex)
122 {
123 return 0;
124 }
125
126 void
127 zebra_mpls_lsp_schedule (struct zebra_vrf *zvrf)
128 {
129 }
130
131 void
132 zebra_mpls_close_tables (struct zebra_vrf *zvrf)
133 {
134 }
135
136 zebra_fec_t *
137 zebra_mpls_fec_for_label (struct zebra_vrf *zvrf, mpls_label_t label)
138 {
139 return NULL;
140 }
141
142 int
143 zebra_mpls_label_already_bound (struct zebra_vrf *zvrf, mpls_label_t label)
144 {
145 return 0;
146 }
147
148 int
149 zebra_mpls_static_fec_add (struct zebra_vrf *zvrf, struct prefix *p,
150 mpls_label_t in_label)
151 {
152 return 0;
153 }
154
155 int
156 zebra_mpls_static_fec_del (struct zebra_vrf *zvrf, struct prefix *p)
157 {
158 return 0;
159 }
160
161 int
162 zebra_mpls_write_fec_config (struct vty *vty, struct zebra_vrf *zvrf)
163 {
164 return 0;
165 }
166
167 void
168 zebra_mpls_print_fec_table (struct vty *vty, struct zebra_vrf *zvrf)
169 {
170 }
171
172 void
173 zebra_mpls_print_fec (struct vty *vty, struct zebra_vrf *zvrf, struct prefix *p)
174 {
175 }
176
177 int
178 zebra_mpls_fec_register (struct zebra_vrf *zvrf, struct prefix *p,
179 u_int32_t label_index, struct zserv *client)
180 {
181 return 0;
182 }
183
184 int
185 zebra_mpls_fec_unregister (struct zebra_vrf *zvrf, struct prefix *p,
186 struct zserv *client)
187 {
188 return 0;
189 }
190
191 int
192 zebra_mpls_cleanup_fecs_for_client (struct zebra_vrf *zvrf, struct zserv *client)
193 {
194 return 0;
195 }
196
197 void mpls_ldp_lsp_uninstall_all (struct hash_backet *backet, void *ctxt)
198 {
199 return;
200 }
201
202 void mpls_ldp_ftn_uninstall_all (struct zebra_vrf *zvrf, int afi)
203 {
204 return;
205 }
206
207 void zebra_mpls_init (void)
208 {
209 return;
210 }
211
212 int mpls_lsp_install (struct zebra_vrf *zvrf, enum lsp_types_t type,
213 mpls_label_t in_label, mpls_label_t out_label,
214 enum nexthop_types_t gtype, union g_addr *gate,
215 ifindex_t ifindex)
216 {
217 return 0;
218 }
219
220 int mpls_lsp_uninstall (struct zebra_vrf *zvrf, enum lsp_types_t type,
221 mpls_label_t in_label, enum nexthop_types_t gtype,
222 union g_addr *gate, ifindex_t ifindex)
223 {
224 return 0;
225 }
226
227 int mpls_ftn_update (int add, struct zebra_vrf *zvrf, enum lsp_types_t type,
228 struct prefix *prefix, enum nexthop_types_t gtype,
229 union g_addr *gate, ifindex_t ifindex, u_int8_t distance,
230 mpls_label_t out_label)
231 {
232 return 0;
233 }
234