From 62bf6b42000d0ecf8a92de03797a3eebe9f48545 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 22 Jul 2022 14:49:06 -0400 Subject: [PATCH] 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 --- bgpd/bgp_zebra.c | 5 +++++ 1 file changed, 5 insertions(+) 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));