From 9094cd28124cf8e655ace6fbedd5a312a7cc8ed1 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 2c1d561721..1a3fe2bbe1 100644 --- a/bgpd/bgp_zebra.c +++ b/bgpd/bgp_zebra.c @@ -2683,6 +2683,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)); -- 2.39.5