From c83c5e4482580351d20fb45dc643c368866e33d8 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 30 Jan 2018 13:30:36 -0500 Subject: 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 --- lib/log.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/log.c') diff --git a/lib/log.c b/lib/log.c index 66be533e84..9fc19ff683 100644 --- a/lib/log.c +++ b/lib/log.c @@ -929,6 +929,7 @@ static const struct zebra_desc_table command_types[] = { DESC_ENTRY(ZEBRA_VRF_UNREGISTER), DESC_ENTRY(ZEBRA_VRF_ADD), DESC_ENTRY(ZEBRA_VRF_DELETE), + DESC_ENTRY(ZEBRA_VRF_LABEL), DESC_ENTRY(ZEBRA_INTERFACE_VRF_UPDATE), DESC_ENTRY(ZEBRA_BFD_CLIENT_REGISTER), DESC_ENTRY(ZEBRA_INTERFACE_ENABLE_RADV), -- cgit v1.2.3