Merge pull request #5552 from sworleys/NHG-Set-RTNH_F_ONLINK

zebra: set RTNH_F_ONLINK in nexthop creation
This commit is contained in:
Donatas Abraitis 2019-12-18 08:06:31 +02:00 committed by GitHub
commit b1980880ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2044,6 +2044,9 @@ static int netlink_nexthop(int cmd, struct zebra_dplane_ctx *ctx)
addattr32(&req.n, req_size, NHA_OIF, nh->ifindex);
if (CHECK_FLAG(nh->flags, NEXTHOP_FLAG_ONLINK))
req.nhm.nh_flags |= RTNH_F_ONLINK;
num_labels =
build_label_stack(nh->nh_label, out_lse,
label_buf, sizeof(label_buf));