Partial-Bug: 1464016 Add bgp routes with unique RDs for all bgp peers
1. Each BGP peer sends its own route : n_peers_
2. Each Agent sends its own route per instance: nagents * ninstances
3. Per agent route, one route is injected by 1/2 bgp peers with same rd
: nagents * ninstances
4. Per agent route, one route is injected by 1/2 bgp peers with different rds
: nagents * ninstances * n_peers_/2
For inet6, for part 1, half peers ended up with the same rd, thus causing the
table to have only n_peers_/2 bgp routes. This same/different rd applies only
to part 3 and 4.
Reviewed: https:/ /review. opencontrail. org/12034 github. org/Juniper/ contrail- controller/ commit/ e2eeebcd7fac812 def9e7b89e102aa dc8792e169
Committed: http://
Submitter: Zuul
Branch: master
commit e2eeebcd7fac812 def9e7b89e102aa dc8792e169
Author: Ananth Suryanarayana <email address hidden>
Date: Thu Jun 25 11:38:38 2015 -0700
Partial-Bug: 1464016 Add bgp routes with unique RDs for all bgp peers
1. Each BGP peer sends its own route : n_peers_
2. Each Agent sends its own route per instance: nagents * ninstances
3. Per agent route, one route is injected by 1/2 bgp peers with same rd
: nagents * ninstances
4. Per agent route, one route is injected by 1/2 bgp peers with different rds
: nagents * ninstances * n_peers_/2
Sum: n_peers_ + nagents * ninstances * (1 + 1 + n_peers_/2)
Expected: nroutes * (n_peers_ + nagents * ninstances * (2 + n_peers_/2))
For inet6, for part 1, half peers ended up with the same rd, thus causing the
table to have only n_peers_/2 bgp routes. This same/different rd applies only
to part 3 and 4.
Change-Id: I2904c615e175f1 6c6c20f48f75a4f b509b56320c