Merge lp:~hopem/charms/trusty/neutron-gateway/lp1501323 into lp:~openstack-charmers-archive/charms/trusty/neutron-gateway/next

Proposed by Edward Hope-Morley
Status: Work in progress
Proposed branch: lp:~hopem/charms/trusty/neutron-gateway/lp1501323
Merge into: lp:~openstack-charmers-archive/charms/trusty/neutron-gateway/next
Diff against target: 65 lines (+38/-0)
3 files modified
config.yaml (+7/-0)
hooks/neutron_contexts.py (+3/-0)
templates/liberty/neutron.conf (+28/-0)
To merge this branch: bzr merge lp:~hopem/charms/trusty/neutron-gateway/lp1501323
Reviewer Review Type Date Requested Status
OpenStack Charmers Pending
Review via email: mp+272902@code.launchpad.net
To post a comment you must log in.

Unmerged revisions

149. By Edward Hope-Morley

[hopem,r=]

Add support for enabling prefix delegation (>= Liberty)

Closes-Bug: 1501323

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'config.yaml'
2--- config.yaml 2015-09-24 16:22:09 +0000
3+++ config.yaml 2015-09-30 12:52:21 +0000
4@@ -176,6 +176,13 @@
5 <physical_network> specifying physical_network names usable for VLAN
6 provider and tenant networks, as well as ranges of VLAN tags on each
7 available for allocation to tenant networks.
8+ ipv6-prefix-delegation:
9+ type: boolean
10+ default: False
11+ description: |
12+ Prefix delegation was introduced in Openstack Liberty as a
13+ means of supporting default subnet allocation for IPv6 tenant
14+ networks. Set to True to enable.
15 # Network configuration options
16 # by default all access is over 'private-address'
17 os-data-network:
18
19=== modified file 'hooks/neutron_contexts.py'
20--- hooks/neutron_contexts.py 2015-07-15 08:08:26 +0000
21+++ hooks/neutron_contexts.py 2015-09-30 12:52:21 +0000
22@@ -159,6 +159,9 @@
23 ctxt['network_device_mtu'] = net_dev_mtu
24 ctxt['veth_mtu'] = net_dev_mtu
25
26+ if config('ipv6-prefix-delegation'):
27+ ctxt['prefix_delegation'] = True
28+
29 return ctxt
30
31
32
33=== added directory 'templates/liberty'
34=== added file 'templates/liberty/neutron.conf'
35--- templates/liberty/neutron.conf 1970-01-01 00:00:00 +0000
36+++ templates/liberty/neutron.conf 2015-09-30 12:52:21 +0000
37@@ -0,0 +1,28 @@
38+# kilo
39+###############################################################################
40+# [ WARNING ]
41+# Configuration file maintained by Juju. Local changes may be overwritten.
42+###############################################################################
43+[DEFAULT]
44+verbose = {{ verbose }}
45+debug = {{ debug }}
46+core_plugin = {{ core_plugin }}
47+control_exchange = neutron
48+notification_driver = neutron.openstack.common.notifier.list_notifier
49+list_notifier_drivers = neutron.openstack.common.notifier.rabbit_notifier
50+{% if network_device_mtu -%}
51+network_device_mtu = {{ network_device_mtu }}
52+{% endif -%}
53+{% if prefix_delegation -%}
54+default_ipv6_subnet_pool = prefix_delegation
55+{%- endif %}
56+
57+{% include "section-zeromq" %}
58+
59+[agent]
60+root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
61+
62+{% include "section-rabbitmq-oslo" %}
63+
64+[oslo_concurrency]
65+lock_path = /var/lock/neutron

Subscribers

People subscribed via source and target branches