Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New Resource]: Ethernet Port #334

Open
wants to merge 16 commits into
base: integration/main
Choose a base branch
from

Conversation

acch
Copy link

@acch acch commented Nov 13, 2024

Adds ability to create ethernet ports (VLAN / LAG).

Closes #304.

Acceptance tests pass:

TF_ACC=1 go test ./internal/provider/networking/network_ethernet_port_resource_test.go -v
=== RUN   TestAccNetworkEthernetPortResource
--- PASS: TestAccNetworkEthernetPortResource (16.33s)
PASS
ok      command-line-arguments  16.338s

Example Terraform Configurations:

// sample LAG with required properties
resource "netapp-ontap_port" "lag" {
  cx_profile_name = ...

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

  node = {
    name = "node1"
  }

  type = "lag"
  lag = {
    distribution_policy = "mac"
    member_ports = [ "e0b", "e0c" ]
    mode = "singlemode"
  }
}
// sample VLAN with required properties
resource "netapp-ontap_port" "vlan" {
  cx_profile_name = ...

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

  node = {
    name = "node1"
  }

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

@acch acch force-pushed the 304-ethernet-port-resource branch from 402e912 to 4eefd5c Compare November 13, 2024 10:47
@acch acch force-pushed the 304-ethernet-port-resource branch from 29b6f47 to aa01b4d Compare November 18, 2024 15:29
@acch acch force-pushed the 304-ethernet-port-resource branch from 6655765 to 8b6ca49 Compare November 19, 2024 13:57
@acch acch marked this pull request as ready for review November 20, 2024 10:35
@carchi8py carchi8py added the New Resource New Request for an ONTAP Resource label Dec 9, 2024
@carchi8py carchi8py added this to the 2.1 milestone Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Resource New Request for an ONTAP Resource
Projects
Status: 2.1
Development

Successfully merging this pull request may close these issues.

[New Resource]: VLAN (ethernet ports)
2 participants