]> git.puffer.fish Git - matthieu/frr.git/commit
lib, zebra: Add new api to specify a label associated with the vrf
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 30 Jan 2018 18:30:36 +0000 (13:30 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 9 Feb 2018 01:31:36 +0000 (20:31 -0500)
commitc83c5e4482580351d20fb45dc643c368866e33d8
tree994650b9c5f16ba268ab936c1395cc724aefef99
parent44bdf1590d4eccb8764f2c6f5de48c59e3eff9c2
lib, zebra: Add new api to specify a label associated with the vrf

For L3VPN's we need to create a label associated with the specified
vrf to be installed into the kernel to allow a pop and lookup
operation.

The new api is:
zclient_send_vrf_label(struct zclient *zclient, vrf_id_t vrf_id,
                       mpls_label_t label);

For the specified vrf_id associate the specified label for
a pop and lookup operation for forwarding.

To setup a POP and Forward use MPLS_LABEL_IMPLICIT_NULL
If the same label is passed in we ignore the call.
If the label is different we update entry.
If the label is MPLS_LABEL_NONE we remove
the entry.

This sets up the api.  Future commits will have the functionality
to actually install into the kernel.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/log.c
lib/zclient.c
lib/zclient.h
zebra/zebra_vrf.h
zebra/zserv.c