diff options
| author | Russ White <russ@riw.us> | 2019-01-29 10:09:44 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-29 10:09:44 -0500 |
| commit | 2538f1dad760c11805f43a07144eacf20866c772 (patch) | |
| tree | feaa3524f73ff4b411d8a2e42862302b2e43ab3a /lib/zclient.c | |
| parent | 1553085aa730033f33b6c0fb9fef4203198f990d (diff) | |
| parent | fe85601c961738e8867a7f2411054dcf4e34d0c3 (diff) | |
Merge pull request #3681 from donaldsharp/onlink
*: The onlink attribute should be owned by the nexthop not the route.
Diffstat (limited to 'lib/zclient.c')
| -rw-r--r-- | lib/zclient.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/zclient.c b/lib/zclient.c index 0e58d97174..a01da77669 100644 --- a/lib/zclient.c +++ b/lib/zclient.c @@ -807,6 +807,7 @@ int zapi_route_encode(uint8_t cmd, struct stream *s, struct zapi_route *api) stream_putl(s, api_nh->vrf_id); stream_putc(s, api_nh->type); + stream_putc(s, api_nh->onlink); switch (api_nh->type) { case NEXTHOP_TYPE_BLACKHOLE: stream_putc(s, api_nh->bh_type); @@ -973,6 +974,7 @@ int zapi_route_decode(struct stream *s, struct zapi_route *api) STREAM_GETL(s, api_nh->vrf_id); STREAM_GETC(s, api_nh->type); + STREAM_GETC(s, api_nh->onlink); switch (api_nh->type) { case NEXTHOP_TYPE_BLACKHOLE: STREAM_GETC(s, api_nh->bh_type); |
