mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-02 14:22:31 +00:00

Install the statically configured LSPs into the FIB (kernel). This is done using the new attributes and definitions for MPLS in the kernel - RTA_VIA, RTA_NEWDST and AF_MPLS. Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com> Ticket: CM-4804 Reviewed By: CCR-3088 Testing Done: Manual in SE-1
56 lines
1.1 KiB
C
56 lines
1.1 KiB
C
#include <zebra.h>
|
|
#include "nexthop.h"
|
|
#include "zebra/rib.h"
|
|
#include "zebra/zserv.h"
|
|
#include "zebra/zebra_mpls.h"
|
|
|
|
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)
|
|
{
|
|
}
|
|
|
|
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)
|
|
{
|
|
}
|