]> git.proxmox.com Git - mirror_frr.git/blob - zebra/zebra_mpls_null.c
Merge remote-tracking branch 'origin/stable/3.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
17 * along with GNU Zebra; see the file COPYING. If not, write to the Free
18 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19 * 02111-1307, USA.
20 */
21
22 #include <zebra.h>
23 #include "zebra/rt.h"
24 #include "zebra/zebra_mpls.h"
25
26 int kernel_add_lsp (zebra_lsp_t *lsp) { return 0; }
27 int kernel_upd_lsp (zebra_lsp_t *lsp) { return 0; }
28 int kernel_del_lsp (zebra_lsp_t *lsp) { return 0; }
29 int mpls_kernel_init (void) { return -1; };
30
31 int mpls_enabled;
32
33 char *
34 mpls_label2str (u_int8_t num_labels, mpls_label_t *labels,
35 char *buf, int len)
36 {
37 return NULL;
38 }
39
40 int
41 mpls_str2label (const char *label_str, u_int8_t *num_labels,
42 mpls_label_t *labels)
43 {
44 return 0;
45 }
46
47 int
48 zebra_mpls_label_block_add (struct zebra_vrf *vrf, u_int32_t start_label,
49 u_int32_t end_label)
50 {
51 return 0;
52 }
53
54 int
55 zebra_mpls_label_block_del (struct zebra_vrf *zvrf)
56 {
57 return 0;
58 }
59
60 int
61 zebra_mpls_write_label_block_config (struct vty *vty, struct zebra_vrf *zvrf)
62 {
63 return 0;
64 }
65
66 int
67 zebra_mpls_lsp_install (struct zebra_vrf *zvrf, struct route_node *rn, struct rib *rib)
68 {
69 return 0;
70 }
71
72 int
73 zebra_mpls_lsp_uninstall (struct zebra_vrf *zvrf, struct route_node *rn, struct rib *rib)
74 {
75 return 0;
76 }
77
78 void
79 zebra_mpls_init_tables (struct zebra_vrf *zvrf)
80 {
81 }
82
83 void
84 zebra_mpls_print_lsp (struct vty *vty, struct zebra_vrf *zvrf, mpls_label_t label,
85 u_char use_json)
86 {
87 }
88
89 void
90 zebra_mpls_print_lsp_table (struct vty *vty, struct zebra_vrf *zvrf,
91 u_char use_json)
92 {
93 }
94
95 int
96 zebra_mpls_write_lsp_config (struct vty *vty, struct zebra_vrf *zvrf)
97 {
98 return 0;
99 }
100
101 #ifdef HAVE_CUMULUS
102 int
103 zebra_mpls_lsp_label_consistent (struct zebra_vrf *zvrf, mpls_label_t in_label,
104 mpls_label_t out_label, enum nexthop_types_t gtype,
105 union g_addr *gate, ifindex_t ifindex)
106 {
107 return 0;
108 }
109 #endif
110
111 int
112 zebra_mpls_static_lsp_add (struct zebra_vrf *zvrf, mpls_label_t in_label,
113 mpls_label_t out_label, enum nexthop_types_t gtype,
114 union g_addr *gate, ifindex_t ifindex)
115 {
116 return 0;
117 }
118
119 int
120 zebra_mpls_static_lsp_del (struct zebra_vrf *zvrf, mpls_label_t in_label,
121 enum nexthop_types_t gtype, union g_addr *gate,
122 ifindex_t ifindex)
123 {
124 return 0;
125 }
126
127 void
128 zebra_mpls_lsp_schedule (struct zebra_vrf *zvrf)
129 {
130 }
131
132 void
133 zebra_mpls_close_tables (struct zebra_vrf *zvrf)
134 {
135 }
136
137 zebra_fec_t *
138 zebra_mpls_fec_for_label (struct zebra_vrf *zvrf, mpls_label_t label)
139 {
140 return NULL;
141 }
142
143 int
144 zebra_mpls_label_already_bound (struct zebra_vrf *zvrf, mpls_label_t label)
145 {
146 return 0;
147 }
148
149 int
150 zebra_mpls_static_fec_add (struct zebra_vrf *zvrf, struct prefix *p,
151 mpls_label_t in_label)
152 {
153 return 0;
154 }
155
156 int
157 zebra_mpls_static_fec_del (struct zebra_vrf *zvrf, struct prefix *p)
158 {
159 return 0;
160 }
161
162 int
163 zebra_mpls_write_fec_config (struct vty *vty, struct zebra_vrf *zvrf)
164 {
165 return 0;
166 }
167
168 void
169 zebra_mpls_print_fec_table (struct vty *vty, struct zebra_vrf *zvrf)
170 {
171 }
172
173 void
174 zebra_mpls_print_fec (struct vty *vty, struct zebra_vrf *zvrf, struct prefix *p)
175 {
176 }
177
178 int
179 zebra_mpls_fec_register (struct zebra_vrf *zvrf, struct prefix *p,
180 u_int32_t label_index, struct zserv *client)
181 {
182 return 0;
183 }
184
185 int
186 zebra_mpls_fec_unregister (struct zebra_vrf *zvrf, struct prefix *p,
187 struct zserv *client)
188 {
189 return 0;
190 }
191
192 int
193 zebra_mpls_cleanup_fecs_for_client (struct zebra_vrf *zvrf, struct zserv *client)
194 {
195 return 0;
196 }
197
198 void mpls_ldp_lsp_uninstall_all (struct hash_backet *backet, void *ctxt)
199 {
200 return;
201 }
202
203 void mpls_ldp_ftn_uninstall_all (struct zebra_vrf *zvrf, int afi)
204 {
205 return;
206 }
207
208 void zebra_mpls_init (void)
209 {
210 return;
211 }
212
213 int mpls_lsp_install (struct zebra_vrf *zvrf, enum lsp_types_t type,
214 mpls_label_t in_label, mpls_label_t out_label,
215 enum nexthop_types_t gtype, union g_addr *gate,
216 ifindex_t ifindex)
217 {
218 return 0;
219 }
220
221 int mpls_lsp_uninstall (struct zebra_vrf *zvrf, enum lsp_types_t type,
222 mpls_label_t in_label, enum nexthop_types_t gtype,
223 union g_addr *gate, ifindex_t ifindex)
224 {
225 return 0;
226 }
227
228 int mpls_ftn_update (int add, struct zebra_vrf *zvrf, enum lsp_types_t type,
229 struct prefix *prefix, enum nexthop_types_t gtype,
230 union g_addr *gate, ifindex_t ifindex, u_int8_t distance,
231 mpls_label_t out_label)
232 {
233 return 0;
234 }
235