mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-12 14:27:36 +00:00
lib, zebra: Encode nexthop vrf in nht updates
The nexthop vrf was not being encoded in nht updates. Add it in. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
f0c7092370
commit
b6c9de3bd3
@ -1217,6 +1217,7 @@ bool zapi_nexthop_update_decode(struct stream *s, struct zapi_route *nhr)
|
|||||||
STREAM_GETC(s, nhr->nexthop_num);
|
STREAM_GETC(s, nhr->nexthop_num);
|
||||||
|
|
||||||
for (i = 0; i < nhr->nexthop_num; i++) {
|
for (i = 0; i < nhr->nexthop_num; i++) {
|
||||||
|
STREAM_GETL(s, nhr->nexthops[i].vrf_id);
|
||||||
STREAM_GETC(s, nhr->nexthops[i].type);
|
STREAM_GETC(s, nhr->nexthops[i].type);
|
||||||
switch (nhr->nexthops[i].type) {
|
switch (nhr->nexthops[i].type) {
|
||||||
case NEXTHOP_TYPE_IPV4:
|
case NEXTHOP_TYPE_IPV4:
|
||||||
|
@ -913,6 +913,7 @@ static int send_client(struct rnh *rnh, struct zserv *client, rnh_type_t type,
|
|||||||
stream_putc(s, 0);
|
stream_putc(s, 0);
|
||||||
for (nh = re->ng.nexthop; nh; nh = nh->next)
|
for (nh = re->ng.nexthop; nh; nh = nh->next)
|
||||||
if (rnh_nexthop_valid(nh)) {
|
if (rnh_nexthop_valid(nh)) {
|
||||||
|
stream_putl(s, nh->vrf_id);
|
||||||
stream_putc(s, nh->type);
|
stream_putc(s, nh->type);
|
||||||
switch (nh->type) {
|
switch (nh->type) {
|
||||||
case NEXTHOP_TYPE_IPV4:
|
case NEXTHOP_TYPE_IPV4:
|
||||||
|
Loading…
Reference in New Issue
Block a user