]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Specify prefix length for IPv6 subnets
authorAlexey I. Froloff <raorn@raorn.name>
Tue, 30 Sep 2014 12:37:19 +0000 (16:37 +0400)
committerAlexey I. Froloff <raorn@raorn.name>
Tue, 13 Jan 2015 14:32:02 +0000 (17:32 +0300)
commitf996a7b46878f543ecf775380529af10fe87b8cb
tree59fe772e72e53c81ac7b35f165fdc2e2726a4a94
parentefe5e47e03fd9743044ff329efa172498f23f3d3
Specify prefix length for IPv6 subnets

If Network contains dhcpv6-stateful Subnet with prefix other than /64,
dnsmasq refuses to start if prefix-len is not specified in dhcp-range
option.  From dnsmasq(8) manpage:

    For IPv6, the parameters are slightly different: instead of netmask
    and broadcast address, there is an optional prefix length which must
    be equal to or larger then the prefix length on the local interface.
    If not given, this defaults to 64. Unlike the IPv4 case, the prefix
    length is not automatically derived from the interface
    configuration. The mimimum size of the prefix length is 64.

It is safe to always specify prefix length, so dnsmasq will use correct
configuration.

Change-Id: Ibef1f55926585016f0054accd7f7ef5a022e3fe1
Closes-Bug: #1372883
neutron/agent/linux/dhcp.py
neutron/tests/unit/test_linux_dhcp.py