Skip to content

Commit

Permalink
Increase ARP and ND retries up to 5 minutes
Browse files Browse the repository at this point in the history
Whenever the VM is spawned Agent sends ARP request for v4 and ND request for v6.
Increase the retries for these requests up to 5 minutes, with each retry after every 2 seconds.

Change-Id: Ie44c2870a7960b5a70c889b976f5e707aba72b98
Closes-Bug: #1625019
  • Loading branch information
ashoksr committed Oct 25, 2016
1 parent bd89e2c commit abed3cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/vnsw/agent/services/arp_proto.h
Expand Up @@ -211,7 +211,8 @@ struct ArpVrfState : public DBState {

class ArpDBState : public DBState {
public:
static const uint32_t kMaxRetry = 30;
static const uint32_t kMaxRetry = 30 * 5; //retries upto 5 minutes,
//30 tries/per minutes
static const uint32_t kTimeout = 2000;
typedef std::map<uint32_t, uint32_t> WaitForTrafficIntfMap;

Expand Down
5 changes: 3 additions & 2 deletions src/vnsw/agent/services/icmpv6_proto.h
Expand Up @@ -121,8 +121,9 @@ class Icmpv6VrfState : public DBState {

class Icmpv6RouteState : public DBState {
public:
static const uint32_t kMaxRetry = 20;
static const uint32_t kTimeout = 1000;
static const uint32_t kMaxRetry = 30 * 5; //retries upto 5 minutes,
//30 tries/per minutes
static const uint32_t kTimeout = 2000;
typedef std::map<uint32_t, uint32_t> WaitForTrafficIntfMap;

Icmpv6RouteState(Icmpv6VrfState *vrf_state, uint32_t vrf_id,
Expand Down

0 comments on commit abed3cd

Please sign in to comment.