bgpd: Incorrect sent prefix count for a split subgroup

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>
This commit is contained in:
Ameya Dharkar 2018-10-09 11:56:46 -07:00
parent 13894ce894
commit 0ab7b206a6

View File

@ -1182,6 +1182,8 @@ static void update_subgroup_copy_adj_out(struct update_subgroup *source,
aout_copy->attr = aout_copy->attr =
aout->attr ? bgp_attr_intern(aout->attr) : NULL; aout->attr ? bgp_attr_intern(aout->attr) : NULL;
} }
dest->scount = source->scount;
} }
/* /*