]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
ipv6: set OtherConfig flag for DHCPv6 stateless subnets
authorIhar Hrachyshka <ihrachys@redhat.com>
Thu, 27 Nov 2014 14:43:48 +0000 (15:43 +0100)
committerIhar Hrachyshka <ihrachys@redhat.com>
Mon, 22 Dec 2014 10:37:38 +0000 (11:37 +0100)
commit4f3a9135acb561172f7af45bc82739d6dc49f23c
tree31191af74e0779c842c4aa49e93a5220a06b6684
parent60ae30d3fa8cab6704c35185a750d0adf1c3aa8e
ipv6: set OtherConfig flag for DHCPv6 stateless subnets

In case of DHCPv6 stateless subnets, we should inform DHCP clients about
other configuration values available from DHCP server. This is done by
setting O (other) flag in RAs, which is controlled by AdvOtherConfigFlag
setting in radvd case.

Since radvd configuration file becomes quite complex, migrated its
generation to Jinja2.

Added a basic unit test that checks that flag is set for stateless mode
and not SLAAC. For stateful, it doesn't really matter whether other flag
is set, so no need to expect any value of it.

No more unit tests seem to be needed: conditional prefix generation is
already covered in test_l3_agent, and other statements are common for
all ipv6_ra_modes.

Change-Id: I1ddad3e1f5efce2b6da4ec00b9294e08fe1e85dd
Closes-Bug: #1397022
neutron/agent/linux/ra.py
neutron/tests/unit/test_l3_agent.py