diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-01-26 20:44:42 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-01-26 21:02:26 -0500 |
| commit | fe85601c961738e8867a7f2411054dcf4e34d0c3 (patch) | |
| tree | c301a84803cda9e8e69b791debbd2f1b4bcdf30f /lib/zclient.h | |
| parent | d57e451387215a2667e07f691494694d14dd5132 (diff) | |
*: The onlink attribute should be owned by the nexthop not the route.
The onlink attribute was being passed from upper level protocols
as an attribute of the route *not* the individual nexthop. When
we pass this data to the kernel, we treat the onlink as a attribute
of the nexthop. This commit modifies the code base to allow
us to pass the ONLINK attribute as an attribute of the nexthop.
This commit also fixes static routes that have multiple nexthops
some onlink and some not.
ip route 4.5.6.7/32 192.168.41.1 eveth1 onlink
ip route 4.5.6.7/32 192.168.42.2
S>* 4.5.6.7/32 [1/0] via 192.168.41.1, eveth1 onlink, 00:03:04
* via 192.168.42.2, eveth2, 00:03:04
sharpd@robot ~/frr2> sudo ip netns exec EVA ip route show
4.5.6.7 proto 196 metric 20
nexthop via 192.168.41.1 dev eveth1 weight 1 onlink
nexthop via 192.168.42.2 dev eveth2 weight 1
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/zclient.h')
| -rw-r--r-- | lib/zclient.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/zclient.h b/lib/zclient.h index 8a3423cdd8..e00821f2f6 100644 --- a/lib/zclient.h +++ b/lib/zclient.h @@ -306,6 +306,7 @@ struct zapi_nexthop { enum nexthop_types_t type; vrf_id_t vrf_id; ifindex_t ifindex; + bool onlink; union { union g_addr gate; enum blackhole_type bh_type; |
