]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Fixup pbr rule changes that were missed 11687/head
authorDonald Sharp <sharpd@nvidia.com>
Fri, 22 Jul 2022 18:49:06 +0000 (14:49 -0400)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Wed, 27 Jul 2022 07:33:29 +0000 (10:33 +0300)
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>
bgpd/bgp_zebra.c

index 2c1d561721956c5f4942be8728e147b2b23b03f1..1a3fe2bbe1f10aa182d3b828694f967b6f68e2fa 100644 (file)
@@ -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));