fuel-plugin-contrail/environment_config.yaml

171 lines
6.5 KiB
YAML

attributes:
# Show contrail only in supported network config
metadata:
restrictions:
- condition: "not (cluster:net_provider == 'neutron' and networking_parameters:segmentation_type != 'vlan')"
message: "Please use Neutron with tunneling segmentation."
contrail_asnum:
value: '64512'
label: 'AS Number'
description: 'AS number for BGP communication'
weight: 20
type: "text"
regex:
source: '^([0-9]{1,4}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$'
error: "Invalid AS number"
contrail_gateways:
value: '10.109.4.250'
label: 'GW IP'
description: 'Comma separated IP addresses of BGP peers.'
weight: 40
type: "text"
regex:
source: '^(?!(?:0(?:\.0){3}|255(?:\.255){3}))(?:\d|1?\d\d|2[0-4]\d|25[0-5])(?:\.(?:\d|1?\d\d|2[0-4]\d|25[0-5])){3}(?:,\s*(?!(?:0(?:\.0){3}|255(?:\.255){3}))(?:\d|1?\d\d|2[0-4]\d|25[0-5])(?:\.(?:\d|1?\d\d|2[0-4]\d|25[0-5])){3})*$'
error: "Invalid IP address list"
contrail_external:
value: '10.100.1.0/24'
label: 'External IP CIDR'
description: 'The CIDR for Contrail external network'
weight: 50
type: "text"
regex:
source: '^(?!(?:0(?:\.0){3}|255(?:\.255){3})\/([1-9]|[1-2]\d|3[0-2])$)(?:\d|1?\d\d|2[0-4]\d|25[0-5])(?:\.(?:\d|1?\d\d|2[0-4]\d|25[0-5])){3}\/([1-9]|[1-2]\d|3[0-2])$'
error: "Invalid CIDR"
contrail_route_target:
value: '10000'
label: 'Route Target'
description: 'The route target number for Contrail external network'
weight: 60
type: "text"
regex:
source: '^(429496729[0-5]|42949672[0-8]\d|4294967[01]\d{2}|429496[0-6]\d{3}|42949[0-5]\d{4}|4294[0-8]\d{5}|429[0-3]\d{6}|42[0-8]\d{7}|4[01]\d{8}|[1-3]\d{9}|[1-9][0-9]{0,7})$'
error: "Invalid target"
contrail_api_public_port:
value: "8082"
label: "Listen port for Contrail API on Public VIP"
description: "The listen port for Contrail API endpoint for Public VIP. Default value 8082 may not be used if Murano is installed, as it uses the same port"
weight: 62
type: "text"
regex:
source: '^(102[4-9]|10[3-9]\d|1[1-9]\d{2}|[2-9]\d{3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5])$'
error: "Invalid port"
contrail_global_dpdk:
value: false
label: "Enable DPDK feature for this environment."
description: "Enable this option to unlock the DPDK feature.\nNOTE: You still have to assign DPDK-role to compute nodes to enable DPDK on them."
weight: 70
type: "checkbox"
hugepages_size:
type: 'select'
weight: 120
value: '2'
label: 'Hugepage size'
description: 'Choose the size of hugepages that will be used for dpdk feature. Check if 1GB pages are supported on target compute node. # grep pdpe1gb /proc/cpuinfo | uniq'
values:
- data: '2'
label: '2M'
- data: '1024'
label: "1G"
restrictions:
- action: hide
condition: not (settings:contrail.metadata.enabled == true and settings:contrail.contrail_global_dpdk.value == true)
hugepages_amount:
value: '60'
label: 'Hugepages amount (%)'
description: 'The amount of memory allocated on each compute-node for hugepages in percent'
weight: 130
type: 'text'
regex:
source: '^[1-9][0-9]?$|^100$'
error: "Invalid amount of percent"
restrictions:
- condition: "not (settings:contrail.metadata.enabled == true and settings:contrail.contrail_global_dpdk.value == true)"
action: "hide"
vrouter_core_mask:
value: "0x3"
label: "CPU pinning"
description: "Hexadecimal mask that determines how many and what exactly processors will be used for dpdk vrouter"
weight: 131
type: "text"
regex:
source: '^0[xX][0-9a-fA-F]+$'
error: "Invalid hexadecimal value"
restrictions:
- condition: "not (settings:contrail.metadata.enabled == true and settings:contrail.contrail_global_dpdk.value == true)"
action: "hide"
patch_nova:
value: true
label: "Patch Nova"
description: "Patch Nova packages for dpdk-vrouter"
weight: 140
type: "checkbox"
restrictions:
- action: hide
condition: not (settings:contrail.metadata.enabled == true and settings:contrail.contrail_global_dpdk.value == true)
install_contrail_qemu_lv:
value: true
label: "Install Qemu and Libvirt from Contrail"
description: "Install Qemu and Libvirt packages from contrail repository"
weight: 150
type: "checkbox"
restrictions:
- condition: "not (settings:contrail.metadata.enabled == true and settings:contrail.contrail_global_dpdk.value == true)"
action: "hide"
dpdk_on_vf:
value: false
label: "DPDK on VF (experimental)"
description: "Configure DPDK vrouter use VF network adapter"
weight: 160
type: "checkbox"
restrictions:
- condition: "not (settings:contrail.metadata.enabled == true and settings:contrail.contrail_global_dpdk.value == true)"
action: "hide"
contrail_global_sriov:
value: false
label: "Enable SRIOV feature for this environment."
description: >
Enable this option to unlock the SRIOV feature.
NOTE: You still have to assign SRIOV-role to compute nodes to enable SRIOV on them.
weight: 210
type: "checkbox"
sriov_physnet:
value: 'physnet1'
label: 'Provide name for physical net'
description: >
This physical network will be provided over SRIOV capable interfaces.
weight: 220
type: 'text'
regex:
source: '^\w+$'
error: "Name has to be alphanumeric"
restrictions:
- action: hide
condition: not (settings:contrail.contrail_global_sriov.value == true)
enable_tor_agents:
value: false
label: "Enable ToR agents (experimental)"
description: "Enable this option to unlock the Tor Agent configuration feature."
weight: 230
type: "checkbox"
tor_agents_ssl:
value: false
label: "Enable ToR agents ssl mode"
description: "Enable this option to generate ssl certificates and configure them for tor agents."
weight: 240
type: "checkbox"
restrictions:
- condition: "settings:contrail.enable_tor_agents.value == false"
action: "hide"
tor_agents_configurations:
value: ""
label: "Configuration for TOR agents"
description: "Provide here configuration data for ToR agents in YAML format"
weight: 250
type: "textarea"
regex:
source: '.'
error: "Provide information for ToR agents"
restrictions:
- condition: "settings:contrail.enable_tor_agents.value == false"
action: "hide"