diff options
author | Ameya Dharkar <adharkar@vmware.com> | 2018-10-09 20:56:46 +0200 |
---|---|---|
committer | Ameya Dharkar <adharkar@vmware.com> | 2018-10-10 20:34:40 +0200 |
commit | 0ab7b206a6eb5f059de5a7ce9cfe966a5ccd8ad5 (patch) | |
tree | c0e65a95b0d1fd919fd40486846d91908e5cc2bb /bgpd/bgp_updgrp.c | |
parent | Merge pull request #3077 from rgirada/ospf_2980_fix (diff) | |
download | frr-0ab7b206a6eb5f059de5a7ce9cfe966a5ccd8ad5.tar.xz frr-0ab7b206a6eb5f059de5a7ce9cfe966a5ccd8ad5.zip |
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>
Diffstat (limited to 'bgpd/bgp_updgrp.c')
-rw-r--r-- | bgpd/bgp_updgrp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bgpd/bgp_updgrp.c b/bgpd/bgp_updgrp.c index 7f7b4a893..2a4c3690c 100644 --- a/bgpd/bgp_updgrp.c +++ b/bgpd/bgp_updgrp.c @@ -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; } /* |