Allow to disable default gw feature 29/6429/2
authorAlessandro Boch <aboch@cisco.com>
Sun, 27 Apr 2014 17:08:03 +0000 (10:08 -0700)
committerAlessandro Boch <aboch@cisco.com>
Sun, 27 Apr 2014 17:31:15 +0000 (10:31 -0700)
commitb10374443562bed1960c06bb85767d8c270436dd
tree8feac0400ac528432de716e750f7914836520f6c
parentcdd013321c53b5b32408b24e0b25cd6a9bfe2980
Allow to disable default gw feature

- Default gateway is a good feature for having host discovery, and
  consequently hosts' pings, work out of the box.
  But in real scenarios a controlled network node may be connected to a
  legacy switch's trunk port which exposes thousand of hosts which ARP
  packets would easily stress controller functionality.
  Even though today this can be prevented by configuring a more
  specific subnet gateway, the issue is very much possible at first
  controller boot, and can always re-occur during subnet config manipulation
  if at any point of time we have no user configured subnet gateways.
- This patch provides a way to disable he default gw feature by mean of
  a property in config.ini. Property addition is not included, current
  behavior is unchanged.

Change-Id: I15b63233e3ed46a8a9fb57bb0988a0d4a2984b11
Signed-off-by: Alessandro Boch <aboch@cisco.com>
opendaylight/switchmanager/implementation/src/main/java/org/opendaylight/controller/switchmanager/internal/SwitchManager.java