forked from noironetworks/fuel_aci_opflex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenvironment_config.yaml
267 lines (267 loc) · 8.02 KB
/
environment_config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
attributes:
metadata:
restrictions:
- condition: "not (cluster:net_provider == 'neutron' and networking_parameters:segmentation_type == 'vlan')"
action: hide
driver_type:
type: "radio"
weight: 33
value: "ML2"
label: "APIC Driver mode"
restrictions:
- condition: "not (cluster:net_provider == 'neutron' and networking_parameters:segmentation_type == 'vlan')"
action: disable
values:
- data: "ML2"
label: "ML2"
description: "ML2 Driver"
- data: "GBP"
label: "Group Based Policy - beta"
description: "Group Based Policy Driver - beta"
apic_hosts:
value: '10.0.0.100'
label: 'APIC Host'
description: 'Commaseparated list of Cisco APIC IP addresses'
weight: 41
type: "text"
apic_username:
value: 'admin'
label: 'APIC Username'
description: 'Username for Cisco APIC; usually admin is used to allow configuration for multiple tenants'
weight: 42
type: "text"
regex:
source: '\S'
error: "Error field cannot be empty"
apic_password:
value: 'password'
label: 'APIC Password'
description: 'Password for the Cisco APIC user identified by the username'
weight: 43
type: "password"
regex:
source: '\S'
error: "Error field cannot be empty"
opflex_encap_type:
type: "radio"
weight: 45
label: "Opflex Encap mode, vlan or vxlan"
value: 'vlan'
values:
- data: 'vlan'
label: "VLAN"
description: "VLAN encap"
- data: 'vxlan'
label: "VxLAN"
description: "VxLAN encap"
apic_infra_vlan:
value: ''
label: 'APIC Infra Vlan'
description: 'Infrastructure vlan number for APIC'
weight: 46
type: "text"
regex:
source: '\d'
error: "Error field cannot be empty, has to be numeric"
apic_infra_subnet_gateway:
value: '10.0.0.30'
label: 'APIC Infra Subnet Gateway'
description: 'APIC infra tenant, default BD subnet'
weight: 47
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})|(?:^)$'
error: "Invalid IP address"
apic_infra_anycast_address:
value: '10.0.0.32'
label: 'APIC Infra anycast address'
description: 'APIC anycast address, default is 10.0.0.32'
weight: 48
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})|(?:^)$'
error: "Invalid IP address"
restrictions:
- condition: "(settings:aci_opflex.opflex_encap_type.value == 'vlan')"
action: hide
use_lldp:
type: "checkbox"
weight: 50
value: false
label: "Use lldp"
description: "Try to automatically discover hosts"
static_config:
type: "textarea"
weight: 51
value: ""
label: "Static config"
description: "Example:\napic_switch:201/compute11,compute21=1/10\napic_switch:201/compute12=1/11\n"
restrictions:
- condition: "settings:aci_opflex.use_lldp.value != false"
action: disable
use_pre_existing_vpc:
type: "checkbox"
weight: 53
value: true
label: "Use pre-existing VPC links"
description: "Use pre-existing VPC configuration as configured in APIC"
use_pre_existing_l3context:
type: "checkbox"
weight: 54
value: true
label: "Pre-existing shared l3context"
description: "Use pre-existing shared l3context"
shared_context_name:
type: "text"
weight: 55
value: "ehnet_shared"
label: "Shared context name:"
description: "Specify a text-field with the name of this l3-context which will then used as shared_context_name"
restrictions:
- condition: "settings:aci_opflex.use_pre_existing_l3context.value == false"
action: hide
apic_system_id:
type: "text"
weight: 56
value: "openstack1"
label: "OpenStack system ID:"
description: "OpenStack ID to be used by APIC"
pre_existing_external_network_on:
type: "checkbox"
weight: 57
value: true
label: "Use pre-existing external network"
description: "Use pre-existing external neutron network configured on APIC side"
restrictions:
- condition: "settings:aci_opflex.ext_net_enable.value == true"
action: hide
apic_external_network:
type: "text"
weight: 58
value: "my_ext_net"
label: "APIC external network:"
description: "External network name, which will be used by APIC"
restrictions:
- condition: "settings:aci_opflex.ext_net_enable.value == true"
action: hide
external_epg:
type: "text"
weight: 59
value: "ext_epg"
label: "External EPG name:"
description: "APIC external EPG name"
restrictions:
- condition: "settings:aci_opflex.ext_net_enable.value == true"
action: hide
ext_net_enable:
type: "checkbox"
weight: 70
value: false
label: "Configure external network"
description: "Create external neutron network"
ext_net_name:
type: "text"
weight: 71
value: "myextnet"
label: "Network name:"
description: "External network name"
restrictions:
- condition: "settings:aci_opflex.ext_net_enable.value == false"
action: hide
ext_net_subnet:
type: "text"
weight: 72
value: "10.0.0.0/24"
label: "Subnet range:"
description: "CIDR for external network"
restrictions:
- condition: "settings:aci_opflex.ext_net_enable.value == false"
action: hide
ext_net_gateway:
type: "text"
weight: 73
value: "10.0.0.1"
label: "Gateway IP:"
description: "IP address of the external gateway"
restrictions:
- condition: "settings:aci_opflex.ext_net_enable.value == false"
action: hide
ext_net_switch:
type: "text"
weight: 74
value: "203"
label: "Switch ID:"
description: "Switch ID from Cisco APIC"
restrictions:
- condition: "settings:aci_opflex.ext_net_enable.value == false"
action: hide
ext_net_port:
type: "text"
weight: 75
value: "1/34"
label: "Port ID:"
description: "Switch port to which the external router is connected"
restrictions:
- condition: "settings:aci_opflex.ext_net_enable.value == false"
action: hide
ext_net_router_id:
type: "text"
weight: 76
value: "1.0.0.2"
label: "Router ID:"
description: "Router ID from Cisco APIC"
restrictions:
- condition: "settings:aci_opflex.ext_net_enable.value == false"
action: hide
ext_net_encap:
type: "text"
weight: 76
value: "vlan-1031"
label: "Enacp vlan ID:"
description: "Vlan encapsulation ID for Cisco APIC. Example: vlan-1031"
restrictions:
- condition: "settings:aci_opflex.ext_net_enable.value == false"
action: hidea
ext_net_neutron_subnet:
type: "text"
weight: 77
value: "10.0.0.0/24"
label: "Neutron external subnet range:"
description: "CIDR for neutron external network"
restrictions:
- condition: "settings:aci_opflex.ext_net_enable.value == false"
action: hide
ext_net_neutron_gateway:
type: "text"
weight: 78
value: "10.0.0.1"
label: "Neutron external Gateway IP:"
description: "IP address of the neutron external gateway"
restrictions:
- condition: "settings:aci_opflex.ext_net_enable.value == false"
action: hide
snat_gateway_mask:
type: "text"
weight: 79
value: '1.1.1.1/24'
label: "SNAT Gateway/Mask:"
description: "SNAT gateway and number of mask bits"
regex:
source: '^(?:(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}(?:[1-9]|[1-9][1-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\/([1-9]|[1-2]\d|3[0-2])$'
error: "Invalid Gateway / Mask bits"
optimized_dhcp:
type: "checkbox"
weight: 80
value: true
label: "Enable Optimized DHCP"
optimized_metadata:
type: "checkbox"
weight: 81
value: true
label: "Enable Optimized Metadata"
additional_config:
type: "textarea"
weight: 82
value: ""
label: "Additional config"
description: "Example:\nml2_cisco_apic/apic_vpc_pairs=201:202,203:204"