From 4be16067287309250b10a2d5a445e9d428b43475 Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Mon, 15 Nov 2021 09:10:48 +0100 Subject: [PATCH] zebra: autorise nexthop interface labelled routes When coming from staticd, some nexthop interface based routes should be able to add a label. Following configuration can help: interface eth0 ip address 10.125.0.1/32 ! ip route 10.125.0.0/24 eth0 label 55 Fixes: ("7fcb24bbaa91") zebra: reject routes without nexthops Signed-off-by: Philippe Guibert --- zebra/zapi_msg.c | 1 - 1 file changed, 1 deletion(-) diff --git a/zebra/zapi_msg.c b/zebra/zapi_msg.c index 761eafeb1375..593a0da421d1 100644 --- a/zebra/zapi_msg.c +++ b/zebra/zapi_msg.c @@ -1788,7 +1788,6 @@ static bool zapi_read_nexthops(struct zserv *client, struct prefix *p, /* Labels for MPLS BGP-LU or Segment Routing or EVPN */ if (CHECK_FLAG(api_nh->flags, ZAPI_NEXTHOP_FLAG_LABEL) - && api_nh->type != NEXTHOP_TYPE_IFINDEX && api_nh->type != NEXTHOP_TYPE_BLACKHOLE && api_nh->label_num > 0) {