summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Worley <sworley@nvidia.com>2021-06-04 11:50:40 -0400
committerStephen Worley <sworley@nvidia.com>2023-02-13 18:12:05 -0500
commit582bb29ac724f46af35516ecfee6cf11a69e3f7a (patch)
tree59002339218acf202fc2b39b3833687506490b24
parenta26daa77cc3229a81ee5d4da0a447941c8ae9bb9 (diff)
zebra: dont install implicit NULL labels non-vni
Don't install implict NULL labels with non-vni label'd routes. This returns behavior to how it was before adding the DVNI code. Ticket: #2677036 Testing Done: precommit, manual Signed-off-by: Stephen Worley <sworley@nvidia.com>
-rw-r--r--zebra/rt_netlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c
index 390c78b7ac..31f35a92ad 100644
--- a/zebra/rt_netlink.c
+++ b/zebra/rt_netlink.c
@@ -1333,7 +1333,7 @@ static int build_label_stack(struct mpls_label_stack *nh_label,
int num_labels = 0;
for (int i = 0; nh_label && i < nh_label->num_labels; i++) {
- if (nh_label_type == ZEBRA_LSP_EVPN
+ if (nh_label_type != ZEBRA_LSP_EVPN
&& nh_label->label[i] == MPLS_LABEL_IMPLICIT_NULL)
continue;