UI fixes added

Change-Id: I8406b7daa5fc667edbe827f65de2d71aed629124
This commit is contained in:
Nikita Koshikov 2015-03-05 12:18:53 +02:00
parent 831493edb0
commit 433b965085
1 changed files with 66 additions and 30 deletions

View File

@ -1,73 +1,109 @@
attributes: attributes:
install_type: use_gbp:
type: "checkbox"
weight: 30
value: false
label: "Group-Based Policy"
description: "Enable/Disable Group-Based Policy installation"
restrictions:
- condition: "not (cluster:net_provider == 'neutron' and (networking_parameters:segmentation_type == 'vlan' or networking_parameters:segmentation_type == 'gre'))"
action: disable
use_apic:
type: "checkbox"
weight: 31
value: false
label: "APIC Driver"
description: "Enable/Disable APIC API Controller"
restrictions:
- condition: "not (cluster:net_provider == 'neutron' and networking_parameters:segmentation_type == 'vlan')"
action: disable
driver_type:
type: "radio" type: "radio"
weight: 20 weight: 33
value: "apic" value: "ML2"
label: "Cisco SDN install type" label: "APIC Driver mode"
restrictions:
- condition: "settings:cisco_aci.use_apic.value != true"
action: disable
values: values:
- data: "apic" - data: "ML2"
label: "Generic APIC ML2 driver" label: "ML2"
description: "Core Cisco ML2 Neutron plugin" description: "ML2 Driver"
- data: "gbp" - data: "GBP"
label: "GBP module and Mapping driver" label: "GBP"
description: "Description ...." description: "Group-Based Policy Driver"
- data: "apic_with_gbp" restrictions:
label: "GBP module and APIC driver" - condition: "settings:cisco_aci.use_gbp.value != true"
description: "Description ..." action: disable
apic_hosts: apic_hosts:
value: '10.0.0.100' value: '10.0.0.100'
label: 'APIC Host' label: 'APIC Host'
description: 'Comma­separated list of Cisco APIC IP addresses' description: 'Comma­separated list of Cisco APIC IP addresses'
weight: 31 weight: 41
type: "text" type: "text"
restrictions:
- condition: "settings:cisco_aci.use_apic.value != true"
action: disable
apic_username: apic_username:
value: 'admin' value: 'admin'
label: 'APIC Username' label: 'APIC Username'
description: 'Username for Cisco APIC; usually admin is used to allow configuration for multiple tenants' description: 'Username for Cisco APIC; usually admin is used to allow configuration for multiple tenants'
weight: 32 weight: 42
type: "text" type: "text"
regex: regex:
source: '\S' source: '\S'
error: "Error field cannot be empty" error: "Error field cannot be empty"
restrictions:
- condition: "settings:cisco_aci.use_apic.value != true"
action: disable
apic_password: apic_password:
value: 'password' value: 'password'
label: 'APIC Password' label: 'APIC Password'
description: 'Password for the Cisco APIC user identified by the username' description: 'Password for the Cisco APIC user identified by the username'
weight: 33 weight: 43
type: "password" type: "password"
regex: regex:
source: '\S' source: '\S'
error: "Error field cannot be empty" error: "Error field cannot be empty"
restrictions:
- condition: "settings:cisco_aci.use_apic.value != true"
action: disable
use_lldp: use_lldp:
type: "checkbox" type: "checkbox"
weight: 40 weight: 50
value: true value: false
label: "Use lldp" label: "Use lldp"
description: "Try to automatically discover hosts" description: "Try to automatically discover hosts"
restrictions: restrictions:
#- condition: "settings:cisco_aci.install_type.value != \"apic\"" - condition: "settings:cisco_aci.use_apic.value != true"
# action: disable action: disable
static_config: static_config:
type: "textarea" type: "textarea"
weight: 41 weight: 51
value: "" value: ""
label: "Static config" label: "Static config"
description: "Example:\n[apic_switch:201]\ncompute11,compute21=1/10\ncompute12=1/11\n" description: "Example:\n[apic_switch:201]\ncompute11,compute21=1/10\ncompute12=1/11\n"
restrictions: restrictions:
- condition: "settings:cisco_aci.use_lldp.value != false" - condition: "settings:cisco_aci.use_lldp.value != false or settings:cisco_aci.use_apic.value != true"
action: disable action: disable
additional_config: additional_config:
type: "textarea" type: "textarea"
weight: 42 weight: 52
value: "" value: ""
label: "Additional config" label: "Additional config"
description: "Example:\n[DEFAULT]\napic_vpc_pairs=201:202,203:204" description: "Example:\n[DEFAULT]\napic_vpc_pairs=201:202,203:204"
create_ext_net: restrictions:
- condition: "settings:cisco_aci.use_apic.value != true"
action: disable
ext_net_enable:
type: "checkbox" type: "checkbox"
weight: 70 weight: 70
value: false value: false
label: "Configure external network" label: "Configure external network"
description: "Create external neutron network" description: "Create external neutron network"
restrictions:
- condition: "settings:cisco_aci.use_apic.value != true"
action: disable
ext_net_name: ext_net_name:
type: "text" type: "text"
weight: 71 weight: 71
@ -75,7 +111,7 @@ attributes:
label: "Network name:" label: "Network name:"
description: "External network name" description: "External network name"
restrictions: restrictions:
- condition: "settings:cisco_aci.create_ext_net.value == false" - condition: "settings:cisco_aci.ext_net_enable.value == false"
action: hide action: hide
ext_net_subnet: ext_net_subnet:
type: "text" type: "text"
@ -84,7 +120,7 @@ attributes:
label: "Subnet range:" label: "Subnet range:"
description: "CIDR for external network" description: "CIDR for external network"
restrictions: restrictions:
- condition: "settings:cisco_aci.create_ext_net.value == false" - condition: "settings:cisco_aci.ext_net_enable.value == false"
action: hide action: hide
ext_net_gateway: ext_net_gateway:
type: "text" type: "text"
@ -93,7 +129,7 @@ attributes:
label: "Gateway IP:" label: "Gateway IP:"
description: "IP address of the external gateway" description: "IP address of the external gateway"
restrictions: restrictions:
- condition: "settings:cisco_aci.create_ext_net.value == false" - condition: "settings:cisco_aci.ext_net_enable.value == false"
action: hide action: hide
ext_net_switch: ext_net_switch:
type: "text" type: "text"
@ -102,7 +138,7 @@ attributes:
label: "Switch ID:" label: "Switch ID:"
description: "Switch ID from Cisco APIC" description: "Switch ID from Cisco APIC"
restrictions: restrictions:
- condition: "settings:cisco_aci.create_ext_net.value == false" - condition: "settings:cisco_aci.ext_net_enable.value == false"
action: hide action: hide
ext_net_port: ext_net_port:
type: "text" type: "text"
@ -111,5 +147,5 @@ attributes:
label: "Port ID:" label: "Port ID:"
description: "Switch port to which the external router is connected" description: "Switch port to which the external router is connected"
restrictions: restrictions:
- condition: "settings:cisco_aci.create_ext_net.value == false" - condition: "settings:cisco_aci.ext_net_enable.value == false"
action: hide action: hide