forked from Mirror/frr
lib: add onlink flag to zapi_nh conversion helper
Add setting the onlink flag to the zapi_nh conversion helper function so that we can set the onlink flag with it when passing down NHGs from upper level protos. Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
This commit is contained in:
parent
2b5ecd4ca6
commit
e90284d77f
|
@ -1649,6 +1649,9 @@ int zapi_nexthop_from_nexthop(struct zapi_nexthop *znh,
|
||||||
znh->ifindex = nh->ifindex;
|
znh->ifindex = nh->ifindex;
|
||||||
znh->gate = nh->gate;
|
znh->gate = nh->gate;
|
||||||
|
|
||||||
|
if (CHECK_FLAG(nh->flags, NEXTHOP_FLAG_ONLINK))
|
||||||
|
SET_FLAG(znh->flags, ZAPI_NEXTHOP_FLAG_ONLINK);
|
||||||
|
|
||||||
if (nh->nh_label && (nh->nh_label->num_labels > 0)) {
|
if (nh->nh_label && (nh->nh_label->num_labels > 0)) {
|
||||||
|
|
||||||
/* Validate */
|
/* Validate */
|
||||||
|
|
Loading…
Reference in a new issue