Skip to content

Commit

Permalink
[ignore] changed argument name from static_ip_address to static_ip_ad…
Browse files Browse the repository at this point in the history
…dresses.
  • Loading branch information
anvitha-jain committed Mar 11, 2024
1 parent e3a9315 commit 7af55ba
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion aci/data_source_aci_cloudlb.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func dataSourceAciCloudL4L7LoadBalancer() *schema.Resource {
Computed: true,
Set: schema.HashString,
},
"static_ip_address": &schema.Schema{
"static_ip_addresses": &schema.Schema{
Type: schema.TypeSet,
Elem: &schema.Schema{Type: schema.TypeString},
Computed: true,
Expand Down
10 changes: 5 additions & 5 deletions aci/resource_aci_cloudlb.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ func resourceAciCloudL4L7LoadBalancer() *schema.Resource {
Optional: true,
Set: schema.HashString,
},
"static_ip_address": &schema.Schema{
"static_ip_addresses": &schema.Schema{
Type: schema.TypeSet,
Elem: &schema.Schema{Type: schema.TypeString},
Optional: true,
Expand Down Expand Up @@ -431,7 +431,7 @@ func getAndSetRemoteCloudL4L7LoadBalancerAttributes(client *client.Client, dn st
}
}
d.Set("relation_cloud_rs_ldev_to_cloud_subnet", cloudLBChildSubnetList)
d.Set("static_ip_address", cloudLBChildStaticIPList)
d.Set("static_ip_addresses", cloudLBChildStaticIPList)
d.Set("aaa_domain_dn", cloudLBChildAaaDomainList)

d.SetId(cloudLBDistinguishedName)
Expand Down Expand Up @@ -482,7 +482,7 @@ func resourceAciCloudL4L7LoadBalancerCreate(ctx context.Context, d *schema.Resou
cloudLBChildList = append(cloudLBChildList, mapListOfAaaDomainAttrs("created", toStringList(aaaDomainDn.(*schema.Set).List()))...)
}

if staticIPAddress, ok := d.GetOk("static_ip_address"); ok {
if staticIPAddress, ok := d.GetOk("static_ip_addresses"); ok {
cloudLBChildList = append(cloudLBChildList, mapCloudFrontendIPv4AddrAttrs(annotation, "created", toStringList(staticIPAddress.(*schema.Set).List())))

}
Expand Down Expand Up @@ -547,8 +547,8 @@ func resourceAciCloudL4L7LoadBalancerUpdate(ctx context.Context, d *schema.Resou
cloudLBChildList = append(cloudLBChildList, mapCloudRsLDevToCloudSubnetAttrs(annotation, "created, modified", relToCreate)...)
}

if d.HasChange("static_ip_address") {
oldRel, newRel := d.GetChange("static_ip_address")
if d.HasChange("static_ip_addresses") {
oldRel, newRel := d.GetChange("static_ip_addresses")
oldRelSet := oldRel.(*schema.Set)
newRelSet := newRel.(*schema.Set)
relToDelete := toStringList(oldRelSet.Difference(newRelSet).List())
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/cloud_l4_l7_native_load_balancer.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ data "aci_cloud_l4_l7_native_load_balancer" "example" {
* `instance_count` - (Read-Only) Instance Count of the Cloud L4-L7 Native Load Balancer object. Type: String.
* `is_copy` - (Read-Only) Enables the device to be a copy device. Type: String.
* `is_instantiation` - (Read-Only) Enables Instantiation of the Cloud L4-L7 Native Load Balancer object. Type: String.
* `is_static_ip` - (Read-Only) Enables Static IP of the Cloud L4-L7 Native Load Balancer object. Type: String.
* `is_static_ip` - (Read-Only) Enables static IP of the Cloud L4-L7 Native Load Balancer object. Type: String.
* `l4l7_device_application_security_group` - (Read-Only) Naming for the Third Party Device Application Security Group of the Cloud L4-L7 Native Load Balancer object. Type: String.
* `l4l7_third_party_device` - (Read-Only) Naming for the Third Party Device of the Cloud L4-L7 Native Load Balancer object. Type: String.
* `managed` - (Read-Only) Enables the device to be a managed device. Type: String.
Expand All @@ -71,4 +71,4 @@ data "aci_cloud_l4_l7_native_load_balancer" "example" {
* `cloud_l4l7_load_balancer_type` - (Read-Only) Type of the Cloud L4-L7 Native Load Balancer object. Type: String.
* `relation_cloud_rs_ldev_to_cloud_subnet` - (Read-Only) Represents the relation to a Relation from Cloud LDev to Cloud Subnet (class cloudSubnet). Type: List.
* `aaa_domain_dn` - (Read-Only) Represents the relation to a Relation from AAA Domain to Cloud L4L7 Native Load Balancer (class aaaRbacAnnotation). Type: List.
* `static_ip_address` - (Read-Only) A list of unique static IP addresses of the Cloud L4-L7 Native Load Balancer object. Type: List.
* `static_ip_addresses` - (Read-Only) A list of unique static IP addresses of the Cloud L4-L7 Native Load Balancer object. Type: List.
4 changes: 2 additions & 2 deletions docs/resources/cloud_l4_l7_native_load_balancer.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ resource "aci_cloud_l4_l7_native_load_balancer" "example" {
* `instance_count` - (Optional) Instance Count of the Cloud L4-L7 Native Load Balancer object. Default value is "2". Type: String.
* `is_copy` - (Optional) Enables the device to be a copy device. Allowed values are "no", "yes", and default value is "no". Type: String.
* `is_instantiation` - (Optional) Enables Instantiation of the Cloud L4-L7 Native Load Balancer object. Allowed values are "no", "yes", and default value is "no". Type: String.
* `is_static_ip` - (Optional) Enables Static IP of the Cloud L4-L7 Native Load Balancer object. Allowed values are "no", "yes", and default value is "no". Type: String.
* `is_static_ip` - (Optional) Enables static IP of the Cloud L4-L7 Native Load Balancer object. Allowed values are "no", "yes", and default value is "no". Type: String.
* `l4l7_device_application_security_group` - (Optional) Naming for the Third Party Device Application Security Group of the Cloud L4-L7 Native Load Balancer object. Type: String.
* `l4l7_third_party_device` - (Optional) Naming for the Third Party Device of the Cloud L4-L7 Native Load Balancer object. Type: String.
* `managed` - (Optional) Enables the device to be a managed device. Allowed values are "no", "yes", and default value is "yes". Type: String.
Expand All @@ -96,7 +96,7 @@ resource "aci_cloud_l4_l7_native_load_balancer" "example" {
* `cloud_l4l7_load_balancer_type` - (Optional) Type of the Cloud L4-L7 Native Load Balancer object. Allowed values are "application", "network", and default value is "application". Type: String.
* `relation_cloud_rs_ldev_to_cloud_subnet` - (Optional) Represents the relation to a Relation from Cloud LDev to Cloud Subnet (class cloudSubnet). Type: List.
* `aaa_domain_dn` - (Optional) Represents the relation to a Relation from AAA Domain to Cloud L4L7 Native Load Balancer (class aaaRbacAnnotation). Type: List.
* `static_ip_address` - (Optional) A list of unique static IP addresses of the Cloud L4-L7 Native Load Balancer object. Type: List.
* `static_ip_addresses` - (Optional) A list of unique static IP addresses of the Cloud L4-L7 Native Load Balancer object. Type: List.

## Importing ##

Expand Down
2 changes: 1 addition & 1 deletion examples/function_node/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ resource "aci_cloud_l4_l7_native_load_balancer" "cloud_nlb" {
relation_cloud_rs_ldev_to_cloud_subnet = [data.aci_cloud_subnet.cs1.id]
allow_all = "yes"
is_static_ip = "yes"
static_ip_address = ["10.20.0.0"]
static_ip_addresses = ["10.20.0.0"]
scheme = "internal"
cloud_l4l7_load_balancer_type = "network"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/l4_l7_service_graph_template/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ resource "aci_cloud_l4_l7_native_load_balancer" "cloud_native_alb" {
]
cloud_l4l7_load_balancer_type = "application"
is_static_ip = "yes"
static_ip_address = ["10.1.1.0"]
static_ip_addresses = ["10.1.1.0"]
}

# Third-Party Firewall
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ data "aci_cloud_l4_l7_native_load_balancer" "example" {
* `instance_count` - (Read-Only) Instance Count of the Cloud L4-L7 Native Load Balancer object. Type: String.
* `is_copy` - (Read-Only) Enables the device to be a copy device. Type: String.
* `is_instantiation` - (Read-Only) Enables Instantiation of the Cloud L4-L7 Native Load Balancer object. Type: String.
* `is_static_ip` - (Read-Only) Enables Static IP of the Cloud L4-L7 Native Load Balancer object. Type: String.
* `is_static_ip` - (Read-Only) Enables static IP of the Cloud L4-L7 Native Load Balancer object. Type: String.
* `l4l7_device_application_security_group` - (Read-Only) Naming for the Third Party Device Application Security Group of the Cloud L4-L7 Native Load Balancer object. Type: String.
* `l4l7_third_party_device` - (Read-Only) Naming for the Third Party Device of the Cloud L4-L7 Native Load Balancer object. Type: String.
* `managed` - (Read-Only) Enables the device to be a managed device. Type: String.
Expand All @@ -71,4 +71,4 @@ data "aci_cloud_l4_l7_native_load_balancer" "example" {
* `cloud_l4l7_load_balancer_type` - (Read-Only) Type of the Cloud L4-L7 Native Load Balancer object. Type: String.
* `relation_cloud_rs_ldev_to_cloud_subnet` - (Read-Only) Represents the relation to a Relation from Cloud LDev to Cloud Subnet (class cloudSubnet). Type: List.
* `aaa_domain_dn` - (Read-Only) Represents the relation to a Relation from AAA Domain to Cloud L4L7 Native Load Balancer (class aaaRbacAnnotation). Type: List.
* `static_ip_address` - (Read-Only) A list of unique static IP addresses of the Cloud L4-L7 Native Load Balancer object. Type: List.
* `static_ip_addresses` - (Read-Only) A list of unique static IP addresses of the Cloud L4-L7 Native Load Balancer object. Type: List.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ resource "aci_cloud_l4_l7_native_load_balancer" "example" {
* `instance_count` - (Optional) Instance Count of the Cloud L4-L7 Native Load Balancer object. Default value is "2". Type: String.
* `is_copy` - (Optional) Enables the device to be a copy device. Allowed values are "no", "yes", and default value is "no". Type: String.
* `is_instantiation` - (Optional) Enables Instantiation of the Cloud L4-L7 Native Load Balancer object. Allowed values are "no", "yes", and default value is "no". Type: String.
* `is_static_ip` - (Optional) Enables Static IP of the Cloud L4-L7 Native Load Balancer object. Allowed values are "no", "yes", and default value is "no". Type: String.
* `is_static_ip` - (Optional) Enables static IP of the Cloud L4-L7 Native Load Balancer object. Allowed values are "no", "yes", and default value is "no". Type: String.
* `l4l7_device_application_security_group` - (Optional) Naming for the Third Party Device Application Security Group of the Cloud L4-L7 Native Load Balancer object. Type: String.
* `l4l7_third_party_device` - (Optional) Naming for the Third Party Device of the Cloud L4-L7 Native Load Balancer object. Type: String.
* `managed` - (Optional) Enables the device to be a managed device. Allowed values are "no", "yes", and default value is "yes". Type: String.
Expand All @@ -96,7 +96,7 @@ resource "aci_cloud_l4_l7_native_load_balancer" "example" {
* `cloud_l4l7_load_balancer_type` - (Optional) Type of the Cloud L4-L7 Native Load Balancer object. Allowed values are "application", "network", and default value is "application". Type: String.
* `relation_cloud_rs_ldev_to_cloud_subnet` - (Optional) Represents the relation to a Relation from Cloud LDev to Cloud Subnet (class cloudSubnet). Type: List.
* `aaa_domain_dn` - (Optional) Represents the relation to a Relation from AAA Domain to Cloud L4L7 Native Load Balancer (class aaaRbacAnnotation). Type: List.
* `static_ip_address` - (Optional) A list of unique static IP addresses of the Cloud L4-L7 Native Load Balancer object. Type: List.
* `static_ip_addresses` - (Optional) A list of unique static IP addresses of the Cloud L4-L7 Native Load Balancer object. Type: List.

## Importing ##

Expand Down

0 comments on commit 7af55ba

Please sign in to comment.