]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Incorrect sent prefix count for a split subgroup 3153/head
authorAmeya Dharkar <adharkar@vmware.com>
Tue, 9 Oct 2018 18:56:46 +0000 (11:56 -0700)
committerAmeya Dharkar <adharkar@vmware.com>
Wed, 10 Oct 2018 18:34:40 +0000 (11:34 -0700)
When a subgroup splits to form a new subgroup because of policy changes
for a peer, new subgroup copies adj out(state about advertised routes)
from the parent subgroup. At the same time, it should also copy
scount(advertised prefix count) to the new subgroup for the count to be
in sync with the adj_out for the subgroup.

Signed-off-by: Ameya Dharkar <adharkar@vmware.org>
bgpd/bgp_updgrp.c

index 7f7b4a893fc83c167866057739578f73918c0c1e..2a4c3690c95a0ed00da31bbfba3eeec0cb0d8eae 100644 (file)
@@ -1182,6 +1182,8 @@ static void update_subgroup_copy_adj_out(struct update_subgroup *source,
                aout_copy->attr =
                        aout->attr ? bgp_attr_intern(aout->attr) : NULL;
        }
+
+       dest->scount = source->scount;
 }
 
 /*