]> git.proxmox.com Git - mirror_frr.git/blobdiff - sharpd/sharp_zebra.c
Merge pull request #12494 from louis-6wind/ext_admin_group
[mirror_frr.git] / sharpd / sharp_zebra.c
index bf5b98544ee210586f277a76405efeb9ae7326ea..fcea484b34873ddfe008b5efdba5c7009bd82780 100644 (file)
@@ -271,6 +271,11 @@ static bool route_add(const struct prefix *p, vrf_id_t vrf_id, uint8_t instance,
                api.nhgid = nhgid;
        } else {
                for (ALL_NEXTHOPS_PTR(nhg, nh)) {
+                       /* Check if we set a VNI label */
+                       if (nh->nh_label &&
+                           (nh->nh_label_type == ZEBRA_LSP_EVPN))
+                               SET_FLAG(api.flags, ZEBRA_FLAG_EVPN_ROUTE);
+
                        api_nh = &api.nexthops[i];
 
                        zapi_nexthop_from_nexthop(api_nh, nh);