Skip to content

Commit

Permalink
Partial-Bug: 1464016 RD should not contain number in hex format
Browse files Browse the repository at this point in the history
Fore IPv6, RDs were generated in <as>:<number> format with <number> in hex form.
<number> should instead be in decimal format

Change-Id: I2786f8dd18d8db91d866f3dc4102c0b1df3a64a1
  • Loading branch information
ananth-at-camphor-networks committed Jul 6, 2015
1 parent 93630f3 commit bfa1ddd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bgp/test/bgp_stress_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@ void BgpStressTest::AddBgpInet6VpnRoute(int peer_id, int route_id,

// For odd peer_id's, choose hard-coded value; for even, choose the
// peer_id. This is to have half of the RD's as dups.
string peer_id_str = (peer_id & 1) ? "9999" : integerToHexString(peer_id);
string peer_id_str = (peer_id & 1) ? "9999" : integerToString(peer_id);
// b's in the address for bgp-peer routes
string pre_prefix = "65412:" + peer_id_str + ":2001:bbbb:bbbb::";

Expand Down Expand Up @@ -1214,7 +1214,7 @@ void BgpStressTest::DeleteBgpInet6VpnRoute(int peer_id, int route_id,

// For odd peer_id's, choose hard-coded value; for even, choose the
// peer_id. This is have half of the RD's as dups.
string peer_id_str = (peer_id & 1) ? "9999" : integerToHexString(peer_id);
string peer_id_str = (peer_id & 1) ? "9999" : integerToString(peer_id);
// b's in the address for bgp-peer routes
string pre_prefix = "65412:" + peer_id_str + ":2001:bbbb:bbbb::";
Inet6VpnPrefix b_prefix6 =
Expand Down

0 comments on commit bfa1ddd

Please sign in to comment.