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.

Closes-Bug: #1625019
(cherry picked from commit abed3cd)

Change-Id: I958428279eb0665639a6e59652e597e77f7e5299
  • Loading branch information
ashoksr committed Oct 25, 2016
1 parent e9a8bee commit e7d0aa8
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 e7d0aa8

Please sign in to comment.