Skip to content

Commit

Permalink
zebra: autorise nexthop interface labelled routes
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
pguibert6WIND committed Jan 3, 2024
1 parent 2aef695 commit 4be1606
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion zebra/zapi_msg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Expand Down

0 comments on commit 4be1606

Please sign in to comment.