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>
This commit is contained in:
Stephen Worley 2021-06-04 11:50:40 -04:00
parent a26daa77cc
commit 582bb29ac7

View File

@ -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;