54 lines
1.9 KiB
YAML
54 lines
1.9 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 GRE segmentation, the only network type supported with Contrail plugin."
|
|
contrail_distribution:
|
|
type: "radio"
|
|
weight: 10
|
|
value: "open"
|
|
label: "Contrail distribution"
|
|
description: "Select Contrail distribution"
|
|
values:
|
|
- data: "open"
|
|
label: "OpenContrail"
|
|
- data: "juniper"
|
|
label: "Juniper Contrail"
|
|
contrail_asnum:
|
|
value: '64512'
|
|
label: 'AS Number'
|
|
description: 'AS number for BGP communication'
|
|
weight: 20
|
|
type: "text"
|
|
regex:
|
|
source: '^(?:(6553[0-5])|(655[0-2]\d)|(65[0-4]\d{2})|(6[0-4]\d{3})|([1-5]\d{4})|([1-9]\d{1,3})|([1-9]))$'
|
|
error: "Invalid AS number"
|
|
contrail_gateways:
|
|
value: '10.109.3.250'
|
|
label: 'GW IP'
|
|
description: 'Comma separated IP addresses of BGP peers.'
|
|
weight: 40
|
|
type: "text"
|
|
regex:
|
|
source: '^(?:\d|1?\d\d|2[0-4]\d|25[0-5])(?:\.(?:\d|1?\d\d|2[0-4]\d|25[0-5])){3}(?:,\s*(?:\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-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\/([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: '^(?:(6553[0-5])|(655[0-2]\d)|(65[0-4]\d{2})|(6[0-4]\d{3})|([1-5]\d{4})|([1-9]\d{1,3})|([1-9]))$'
|
|
error: "Invalid target"
|