summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2017-06-05 22:48:10 -0300
committerRenato Westphal <renato@opensourcerouting.org>2017-07-25 00:53:23 -0300
commitb557e0b6df1d076b51de7d357746388a5c969803 (patch)
treebba5792c035a74a45fb27bb8871478f4de6841de
parent1e4d264f2bce049de4a7e90d2f7b9c1673b14c57 (diff)
zebra: add implicit-null labels to the rib
Implicit-null labels are never installed in the FIB but we need to keep track of them because of L2/L3 VPN nexthop resolution. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
-rw-r--r--zebra/zserv.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/zebra/zserv.c b/zebra/zserv.c
index 9beae9232e..f2d32d7798 100644
--- a/zebra/zserv.c
+++ b/zebra/zserv.c
@@ -1762,16 +1762,14 @@ zread_mpls_labels (int command, struct zserv *client, u_short length,
{
mpls_lsp_install (zvrf, type, in_label, out_label, gtype, &gate,
NULL, ifindex);
- if (out_label != MPLS_IMP_NULL_LABEL)
- mpls_ftn_update (1, zvrf, type, &prefix, gtype, &gate, ifindex,
- distance, out_label);
+ mpls_ftn_update (1, zvrf, type, &prefix, gtype, &gate, ifindex,
+ distance, out_label);
}
else if (command == ZEBRA_MPLS_LABELS_DELETE)
{
mpls_lsp_uninstall (zvrf, type, in_label, gtype, &gate, NULL, ifindex);
- if (out_label != MPLS_IMP_NULL_LABEL)
- mpls_ftn_update (0, zvrf, type, &prefix, gtype, &gate, ifindex,
- distance, out_label);
+ mpls_ftn_update (0, zvrf, type, &prefix, gtype, &gate, ifindex,
+ distance, out_label);
}
}
/* Send response to a label manager connect request to client */