File tree Expand file tree Collapse file tree 4 files changed +25
-6
lines changed Expand file tree Collapse file tree 4 files changed +25
-6
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ resource_registry:
5
5
Cluster::NodeNet1WithFIP : ../resources/nodenet-w-fip.yaml
6
6
Cluster::NodeNet1WithPreallocatedFIP : ../resources/nodenet-w-prealloc-fip.yaml
7
7
Cluster::NodeNet2 : ../resources/nodenet-2.yaml
8
+ Cluster::NodeNet2WithFIP : ../resources/nodenet-2-w-fip.yaml
8
9
Cluster::NodeNet3 : ../resources/nodenet-3.yaml
9
10
Cluster::NodeNet2WithFIPSRIOV : ../resources/nodenet-2-w-fip-sriov.yaml
10
11
Cluster::NodeNet3WithFIPSRIOV : ../resources/nodenet-3-w-fip-sriov.yaml
Original file line number Diff line number Diff line change @@ -44,7 +44,10 @@ parameters:
44
44
- " Cluster::NodeNet1WithFIP"
45
45
- " Cluster::NodeNet1WithPreallocatedFIP"
46
46
- " Cluster::NodeNet2"
47
+ - " Cluster::NodeNet2WithFIP"
48
+ - " Cluster::NodeNet2WithFIPSRIOV"
47
49
- " Cluster::NodeNet3"
50
+ - " Cluster::NodeNet3WithFIPSRIOV"
48
51
group_idx :
49
52
type : number
50
53
label : Cluster group index
Original file line number Diff line number Diff line change @@ -22,12 +22,18 @@ parameters:
22
22
default : []
23
23
24
24
conditions :
25
- security_groups_set :
25
+ security_groups_port1 :
26
26
yaql :
27
27
expression : $.data.cluster_net.containsKey('security_groups')
28
28
data :
29
29
cluster_net : { get_param: [ cluster_net, 0 ] }
30
30
31
+ security_groups_port2 :
32
+ yaql :
33
+ expression : $.data.cluster_net.containsKey('security_groups')
34
+ data :
35
+ cluster_net : { get_param: [ cluster_net, 1 ] }
36
+
31
37
resources :
32
38
33
39
port1 :
@@ -36,7 +42,7 @@ resources:
36
42
network : { get_param: [ cluster_net, 0, net ] }
37
43
security_groups :
38
44
if :
39
- - security_groups_set
45
+ - security_groups_port1
40
46
- { get_param: [ cluster_net, 0, security_groups ] }
41
47
- []
42
48
fixed_ips :
@@ -47,7 +53,10 @@ resources:
47
53
properties :
48
54
network : { get_param: [ cluster_net, 1, net ] }
49
55
security_groups :
50
- - []
56
+ if :
57
+ - security_groups_port2
58
+ - { get_param: [ cluster_net, 1, security_groups ] }
59
+ - []
51
60
fixed_ips :
52
61
- subnet_id : { get_param: [ cluster_net, 1, subnet ] }
53
62
Original file line number Diff line number Diff line change @@ -25,12 +25,18 @@ parameters:
25
25
default : []
26
26
27
27
conditions :
28
- security_groups_set :
28
+ security_groups_port1 :
29
29
yaql :
30
30
expression : $.data.cluster_net.containsKey('security_groups')
31
31
data :
32
32
cluster_net : { get_param: [ cluster_net, 0 ] }
33
33
34
+ security_groups_port2 :
35
+ yaql :
36
+ expression : $.data.cluster_net.containsKey('security_groups')
37
+ data :
38
+ cluster_net : { get_param: [ cluster_net, 1 ] }
39
+
34
40
resources :
35
41
36
42
port1 :
@@ -39,7 +45,7 @@ resources:
39
45
network : { get_param: [ cluster_net, 0, net ] }
40
46
security_groups :
41
47
if :
42
- - security_groups_set
48
+ - security_groups_port1
43
49
- { get_param: [ cluster_net, 0, security_groups ] }
44
50
- []
45
51
fixed_ips :
@@ -51,7 +57,7 @@ resources:
51
57
network : { get_param: [ cluster_net, 1, net ] }
52
58
security_groups :
53
59
if :
54
- - security_groups_set
60
+ - security_groups_port2
55
61
- { get_param: [ cluster_net, 1, security_groups ] }
56
62
- []
57
63
fixed_ips :
You can’t perform that action at this time.
0 commit comments