Neutron DVR and L2 population support

This adds settings for two Neutron features at once
as DVR depends on L2 population and this should be reflected
in UI.

L2 population restrictions: actual only for tunnel segmentations:
gre, vxlan, etc., in fact "!=vlan".
DVR restrictions: if segmentation type is tunnel then L2 population
must be enabled.

Change-Id: Ied67b14a4629c9c5ea26ab09e000b6d18767591c
Implements: blueprint neutron-dvr-deployment
Implements: blueprint neutron-l2-population
This commit is contained in:
Oleg Bondarev 2015-07-09 18:53:20 +03:00
parent 33dcdd54b3
commit 3e132a5397
2 changed files with 28 additions and 0 deletions

View File

@ -803,6 +803,30 @@
description: "When disabled, public network will be assigned to controllers only"
weight: 10
type: "checkbox"
neutron_advanced_configuration:
metadata:
weight: 45
label: "Neutron Advanced Configuration"
restrictions:
- condition: "cluster:net_provider != 'neutron'"
action: "hide"
neutron_l2_pop:
value: false
label: "Neutron L2 population"
description: "Enable L2 population mechanism in Neutron"
weight: 10
type: "checkbox"
restrictions:
- condition: "networking_parameters:segmentation_type == 'vlan'"
action: "hide"
neutron_dvr:
value: false
label: "Neutron DVR"
description: "Enable Distributed Virtual Routers in Neutron"
weight: 20
type: "checkbox"
restrictions:
- "networking_parameters:segmentation_type != 'vlan' and settings:neutron_advanced_configuration.neutron_l2_pop.value == false": "DVR requires L2 population to be enabled."
corosync:
metadata:
label: "Corosync"

View File

@ -51,6 +51,10 @@ class InstallationInfo(object):
WhiteListRule(('public_network_assignment', 'assign_to_all_nodes',
'value'), 'assign_public_to_all_nodes', None),
WhiteListRule(('neutron_advanced_configuration', 'neutron_l2_pop',
'value'), 'neutron_l2_pop', None),
WhiteListRule(('neutron_advanced_configuration', 'neutron_dvr',
'value'), 'neutron_dvr', None),
WhiteListRule(('syslog', 'syslog_transport', 'value'),
'syslog_transport', None),
WhiteListRule(('provision', 'method', 'value'),