NetApp / terraform-provider-netapp-ontap

Terrafrom ONTAP provider
https://registry.terraform.io/providers/NetApp/netapp-ontap/latest
Mozilla Public License 2.0
17 stars 8 forks source link

Add interface `location.broadcast_domain` parameter #337

Open acch opened 2 days ago

acch commented 2 days ago

Adds ability to configure location.broadcast_domain parameter of IP Interfaces.

Closes #305.

Acceptance tests WIP:

$ TF_ACC=1 go test ./internal/provider/networking/network_ip_interface_resource_test.go -v
...
$ TF_ACC=1 go test ./internal/provider/networking/network_ip_interface_resource_alias_test.go -v
...

Example Terraform Configurations:

resource "netapp-ontap_network_ip_interface" "with_node_port" {
  cx_profile_name = ...
  name            = ...
  svm_name        = ...

  ip = { ... }

  location = {
    home_port = "e0a-100"
    home_node = "node1"
  }
}
resource "netapp-ontap_network_ip_interface" "with_broadcast_domain" {
  cx_profile_name = ...
  name            = ...
  svm_name        = ...

  ip = { ... }

  location = {
    broadcast_domain = {
      name = "bd1"
    }
  }
}