@@ -112,6 +112,8 @@ func TestAccCloudStackLoadBalancerRule_forceNew(t *testing.T) {
112
112
"cloudstack_loadbalancer_rule.foo" , "public_port" , "80" ),
113
113
resource .TestCheckResourceAttr (
114
114
"cloudstack_loadbalancer_rule.foo" , "private_port" , "80" ),
115
+ resource .TestCheckResourceAttr (
116
+ "cloudstack_loadbalancer_rule.foo" , "cidrlist.0" , "10.0.0.0/8" ),
115
117
),
116
118
},
117
119
@@ -129,6 +131,8 @@ func TestAccCloudStackLoadBalancerRule_forceNew(t *testing.T) {
129
131
"cloudstack_loadbalancer_rule.foo" , "private_port" , "443" ),
130
132
resource .TestCheckResourceAttr (
131
133
"cloudstack_loadbalancer_rule.foo" , "protocol" , "tcp-proxy" ),
134
+ resource .TestCheckResourceAttr (
135
+ "cloudstack_loadbalancer_rule.foo" , "cidrlist.0" , "20.0.0.0/8" ),
132
136
),
133
137
},
134
138
},
@@ -177,6 +181,8 @@ func TestAccCloudStackLoadBalancerRule_vpcUpdate(t *testing.T) {
177
181
"cloudstack_loadbalancer_rule.foo" , "public_port" , "80" ),
178
182
resource .TestCheckResourceAttr (
179
183
"cloudstack_loadbalancer_rule.foo" , "private_port" , "80" ),
184
+ resource .TestCheckResourceAttr (
185
+ "cloudstack_loadbalancer_rule.foo" , "cidrlist.0" , "10.0.0.0/8" ),
180
186
),
181
187
},
182
188
@@ -192,6 +198,10 @@ func TestAccCloudStackLoadBalancerRule_vpcUpdate(t *testing.T) {
192
198
"cloudstack_loadbalancer_rule.foo" , "public_port" , "443" ),
193
199
resource .TestCheckResourceAttr (
194
200
"cloudstack_loadbalancer_rule.foo" , "private_port" , "443" ),
201
+ resource .TestCheckResourceAttr (
202
+ "cloudstack_loadbalancer_rule.foo" , "cidrlist.0" , "20.0.0.0/8" ),
203
+ resource .TestCheckResourceAttr (
204
+ "cloudstack_loadbalancer_rule.foo" , "cidrlist.1" , "30.0.0.0/8" ),
195
205
),
196
206
},
197
207
},
@@ -290,6 +300,7 @@ resource "cloudstack_loadbalancer_rule" "foo" {
290
300
public_port = 80
291
301
private_port = 80
292
302
member_ids = [cloudstack_instance.foobar1.id]
303
+ cidrlist = ["10.0.0.0/8"]
293
304
}`
294
305
295
306
const testAccCloudStackLoadBalancerRule_update = `
@@ -323,6 +334,7 @@ resource "cloudstack_loadbalancer_rule" "foo" {
323
334
public_port = 80
324
335
private_port = 80
325
336
member_ids = [cloudstack_instance.foobar1.id]
337
+ cidrlist = ["10.0.0.0/8"]
326
338
}`
327
339
328
340
const testAccCloudStackLoadBalancerRule_forcenew = `
@@ -357,6 +369,7 @@ resource "cloudstack_loadbalancer_rule" "foo" {
357
369
private_port = 443
358
370
protocol = "tcp-proxy"
359
371
member_ids = [cloudstack_instance.foobar1.id]
372
+ cidrlist = ["20.0.0.0/8"]
360
373
}`
361
374
362
375
const testAccCloudStackLoadBalancerRule_vpc = `
@@ -399,6 +412,7 @@ resource "cloudstack_loadbalancer_rule" "foo" {
399
412
public_port = 80
400
413
private_port = 80
401
414
member_ids = [cloudstack_instance.foobar1.id]
415
+ cidrlist = ["10.0.0.0/8"]
402
416
}`
403
417
404
418
const testAccCloudStackLoadBalancerRule_vpc_update = `
@@ -451,4 +465,5 @@ resource "cloudstack_loadbalancer_rule" "foo" {
451
465
public_port = 443
452
466
private_port = 443
453
467
member_ids = [cloudstack_instance.foobar1.id, cloudstack_instance.foobar2.id]
468
+ cidrlist = ["20.0.0.0/8"]
454
469
}`
0 commit comments