From be0dba358f7cd40ae27f012409734786a13d5ce4 Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Mon, 12 Sep 2016 09:02:39 -0300 Subject: mpls: add null driver Signed-off-by: Renato Westphal --- zebra/zebra_mpls_null.c | 82 +++---------------------------------------------- 1 file changed, 4 insertions(+), 78 deletions(-) (limited to 'zebra/zebra_mpls_null.c') diff --git a/zebra/zebra_mpls_null.c b/zebra/zebra_mpls_null.c index 2953138dbc..9022fe30d2 100644 --- a/zebra/zebra_mpls_null.c +++ b/zebra/zebra_mpls_null.c @@ -1,81 +1,7 @@ #include -#include "nexthop.h" -#include "zebra/rib.h" -#include "zebra/zserv.h" +#include "zebra/rt.h" #include "zebra/zebra_mpls.h" -int -mpls_str2label (const char *label_str, u_int8_t *num_labels, - mpls_label_t *labels) -{ - return 0; -} - -char * -mpls_label2str (u_int8_t num_labels, mpls_label_t *labels, - char *buf, int len) -{ - return NULL; -} - -int -zebra_mpls_lsp_label_consistent (struct zebra_vrf *zvrf, mpls_label_t in_label, - mpls_label_t out_label, enum nexthop_types_t gtype, - union g_addr *gate, char *ifname, ifindex_t ifindex) -{ - return 1; -} - -int -zebra_mpls_static_lsp_add (struct zebra_vrf *zvrf, mpls_label_t in_label, - mpls_label_t out_label, enum nexthop_types_t gtype, - union g_addr *gate, char *ifname, ifindex_t ifindex) -{ - return 0; -} - -int -zebra_mpls_static_lsp_del (struct zebra_vrf *zvrf, mpls_label_t in_label, - enum nexthop_types_t gtype, union g_addr *gate, - char *ifname, ifindex_t ifindex) -{ - return 0; -} - -void -zebra_mpls_lsp_schedule (struct zebra_vrf *zvrf) -{ -} - -void -zebra_mpls_print_lsp (struct vty *vty, struct zebra_vrf *zvrf, mpls_label_t label, - u_char use_json) -{ -} - -void -zebra_mpls_print_lsp_table (struct vty *vty, struct zebra_vrf *zvrf, - u_char use_json) -{ -} - -int -zebra_mpls_write_lsp_config (struct vty *vty, struct zebra_vrf *zvrf) -{ - return 0; -} - -void -zebra_mpls_close_tables (struct zebra_vrf *zvrf) -{ -} - -void -zebra_mpls_init_tables (struct zebra_vrf *zvrf) -{ -} - -void -zebra_mpls_init (void) -{ -} +int kernel_add_lsp (zebra_lsp_t *lsp) { return 0; } +int kernel_upd_lsp (zebra_lsp_t *lsp) { return 0; } +int kernel_del_lsp (zebra_lsp_t *lsp) { return 0; } -- cgit v1.2.3