summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-07-22 14:49:06 -0400
committerDonald Sharp <sharpd@nvidia.com>2022-07-26 12:41:11 -0400
commit62bf6b42000d0ecf8a92de03797a3eebe9f48545 (patch)
tree8a7aa1e1e5c232d3ebcea5de2e60526de288e4dd
parent2ade1c00591d0fa6f7d0816233bd25a40c57256f (diff)
bgpd: Fixup pbr rule changes that were missed
In commit: d70a31a3ef2b60d978b336d5cc9ee5e1ec079dfc the Zapi ZEBRA_RULE_ADD message was modified but the bgp version was not updated appropriately and when zebra received the message it did not properly read it. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
-rw-r--r--bgpd/bgp_zebra.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c
index fc7590dcc2..2151d0a613 100644
--- a/bgpd/bgp_zebra.c
+++ b/bgpd/bgp_zebra.c
@@ -2687,6 +2687,11 @@ static void bgp_encode_pbr_rule_action(struct stream *s,
else
stream_putl(s, pbra->fwmark); /* fwmark */
+ stream_putl(s, 0); /* queue id */
+ stream_putw(s, 0); /* vlan_id */
+ stream_putw(s, 0); /* vlan_flags */
+ stream_putw(s, 0); /* pcp */
+
stream_putl(s, pbra->table_id);
memset(ifname, 0, sizeof(ifname));