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
=== modified file 'config.yaml'
--- config.yaml 2015-09-24 16:22:09 +0000
+++ config.yaml 2015-09-30 12:52:21 +0000
@@ -176,6 +176,13 @@
176 <physical_network> specifying physical_network names usable for VLAN176 <physical_network> specifying physical_network names usable for VLAN
177 provider and tenant networks, as well as ranges of VLAN tags on each177 provider and tenant networks, as well as ranges of VLAN tags on each
178 available for allocation to tenant networks.178 available for allocation to tenant networks.
179 ipv6-prefix-delegation:
180 type: boolean
181 default: False
182 description: |
183 Prefix delegation was introduced in Openstack Liberty as a
184 means of supporting default subnet allocation for IPv6 tenant
185 networks. Set to True to enable.
179 # Network configuration options186 # Network configuration options
180 # by default all access is over 'private-address'187 # by default all access is over 'private-address'
181 os-data-network:188 os-data-network:
182189
=== modified file 'hooks/neutron_contexts.py'
--- hooks/neutron_contexts.py 2015-07-15 08:08:26 +0000
+++ hooks/neutron_contexts.py 2015-09-30 12:52:21 +0000
@@ -159,6 +159,9 @@
159 ctxt['network_device_mtu'] = net_dev_mtu159 ctxt['network_device_mtu'] = net_dev_mtu
160 ctxt['veth_mtu'] = net_dev_mtu160 ctxt['veth_mtu'] = net_dev_mtu
161161
162 if config('ipv6-prefix-delegation'):
163 ctxt['prefix_delegation'] = True
164
162 return ctxt165 return ctxt
163166
164167
165168
=== added directory 'templates/liberty'
=== added file 'templates/liberty/neutron.conf'
--- templates/liberty/neutron.conf 1970-01-01 00:00:00 +0000
+++ templates/liberty/neutron.conf 2015-09-30 12:52:21 +0000
@@ -0,0 +1,28 @@
1# kilo
2###############################################################################
3# [ WARNING ]
4# Configuration file maintained by Juju. Local changes may be overwritten.
5###############################################################################
6[DEFAULT]
7verbose = {{ verbose }}
8debug = {{ debug }}
9core_plugin = {{ core_plugin }}
10control_exchange = neutron
11notification_driver = neutron.openstack.common.notifier.list_notifier
12list_notifier_drivers = neutron.openstack.common.notifier.rabbit_notifier
13{% if network_device_mtu -%}
14network_device_mtu = {{ network_device_mtu }}
15{% endif -%}
16{% if prefix_delegation -%}
17default_ipv6_subnet_pool = prefix_delegation
18{%- endif %}
19
20{% include "section-zeromq" %}
21
22[agent]
23root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
24
25{% include "section-rabbitmq-oslo" %}
26
27[oslo_concurrency]
28lock_path = /var/lock/neutron

Subscribers

People subscribed via source and target branches