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

[New Resource]: VLAN (ethernet ports) #304

Open acch opened 1 month ago

acch commented 1 month ago

Description

Ability to create VLANs (/network/ethernet/ports endpoint)

Requested Resource(s) and/or Data Source(s)

Potential Terraform Configuration

// sample VLAN
resource "netapp-ontap_port" "example" {
  cx_profile_name = "cluster1"

  broadcast_domain = {
    ipspace = "Default"
    name    = "bd1"
  }

  node = {
    name = "node1"
  }

  type = "vlan"
  vlan = {
    base_port = "e1b"
    tag       = 100
  }
}

References

Would you like to implement a fix?

Yes

carchi8py commented 1 month ago

@acch i'm going to rename this resouce to netapp-ontap_ports (or netapp-ontap_port) since that what the Rest API is under the covers.

acch commented 2 days ago

I've prepared a PR to address this change: #334.

Please let me know if anything's missing.

carchi8py commented 1 day ago

Ok i'll look at that in a little bit. Right now one of our Vsim that was set up to run the pipeline got remove so were working on getting all the stuff back up on a new one so the pipeline can work again.

acch commented 20 hours ago

Sure thing - let me know how I can help!

BTW: We'll probably need to adjust the params in the resource-test-file (here) to match your environment (i.e. node name, port name(s), etc.). Once the Vsim is up & running: if you send me the details then I'm happy to fill them in...