]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Dynamically adjust max number of leases
authorMark McClain <mark.mcclain@dreamhost.com>
Fri, 13 Sep 2013 21:48:20 +0000 (17:48 -0400)
committerMark McClain <mark.mcclain@dreamhost.com>
Tue, 17 Sep 2013 20:40:23 +0000 (16:40 -0400)
commitfbc02fd569983122a9f5284a71f3c3aaaa03d260
treea8037c74f0263451d66bc790d80ec2d1235c4f03
parent4afee8006c671cb2ffdad9d7fd2ef4b12284ac16
Dynamically adjust max number of leases

This change dynamically adjusts the maximum number of leases based on
the size of the subnets associated with a network.  The upper bound is
limited by a configurable option to keep the max reasonable and prevent
denial of service.

Closes bug: 1225200

Change-Id: I75c3907bcf45cd991eadf5dd8c8ad7f1eaab3c85
etc/dhcp_agent.ini
neutron/agent/linux/dhcp.py
neutron/tests/unit/test_linux_dhcp.py