summaryrefslogtreecommitdiff
path: root/zebra/zapi_msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/zapi_msg.c')
-rw-r--r--zebra/zapi_msg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/zebra/zapi_msg.c b/zebra/zapi_msg.c
index 3288373dbe..15b5790923 100644
--- a/zebra/zapi_msg.c
+++ b/zebra/zapi_msg.c
@@ -1785,8 +1785,9 @@ static bool zapi_read_nexthops(struct zserv *client, struct prefix *p,
&& api_nh->type != NEXTHOP_TYPE_BLACKHOLE
&& api_nh->label_num > 0) {
- if (CHECK_FLAG(flags, ZEBRA_FLAG_EVPN_ROUTE))
- label_type = ZEBRA_LSP_EVPN;
+ /* If label type was passed, use it */
+ if (api_nh->label_type)
+ label_type = api_nh->label_type;
else
label_type =
lsp_type_from_re_type(client->proto);