Skip to content

Commit

Permalink
Merge pull request #2040 from anarkiwi/master
Browse files Browse the repository at this point in the history
Default proactive limit should be 2*max_hosts.
  • Loading branch information
anarkiwi authored Jun 5, 2018
2 parents 62333eb + ba1cf89 commit 9611b93
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions faucet/vlan.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ class VLAN(Conf):
'bgp_neighbour_as': None,
'bgp_neighbor_as': None,
'routes': None,
'max_hosts': 255,
'max_hosts': 256,
# Limit number of hosts that can be learned on a VLAN.
'vid': None,
'proactive_arp_limit': 2048 + 4, # from L3 stress test
# Don't proactively ARP for hosts if over this limit (None unlimited)
'proactive_nd_limit': 2048 + 4, # from L3 stress test
# Don't proactively ND for hosts if over this limit (None unlimited)
'proactive_arp_limit': 0,
# Don't proactively ARP for hosts if over this limit (default 2*max_hosts)
'proactive_nd_limit': 0,
# Don't proactively ND for hosts if over this limit (default 2*max_hosts)
'targeted_gw_resolution': False,
# If True, and a gateway has been resolved, target the first re-resolution attempt to the same port rather than flooding.
'minimum_ip_size_check': True,
Expand Down Expand Up @@ -185,6 +185,11 @@ def check_config(self):
test_config_condition(not self.vid_valid(self.vid), 'invalid VID %s' % self.vid)
test_config_condition(not netaddr.valid_mac(self.faucet_mac), (
'invalid MAC address %s' % self.faucet_mac))
if self.max_hosts:
if not self.proactive_arp_limit:
self.proactive_arp_limit = 2 * self.max_hosts
if not self.proactive_nd_limit:
self.proactive_nd_limit = 2 * self.max_hosts
if self.faucet_vips:
try:
self.faucet_vips = [
Expand Down

0 comments on commit 9611b93

Please sign in to comment.