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 1,043 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
  }
}

wenjun666 and others added 30 commits August 19, 2024 15:42
…resource-example-not-showing-up-correctly-1

fix Doc bug for flexcache
…ion-is-wrong-for-resource-ip-route

265 docs on prem ontap version is wrong for resource ip route
Chris Archibald and others added 6 commits January 6, 2025 09:04
Bumps [github.com/hashicorp/terraform-plugin-framework-validators](https://github.com/hashicorp/terraform-plugin-framework-validators) from 0.12.0 to 0.16.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-framework-validators/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-framework-validators/blob/main/CHANGELOG.md)
- [Commits](hashicorp/terraform-plugin-framework-validators@v0.12.0...v0.16.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-framework-validators
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
…b.com/hashicorp/terraform-plugin-framework-validators-0.16.0

Bump github.com/hashicorp/terraform-plugin-framework-validators from 0.12.0 to 0.16.0
Bumps [github.com/hashicorp/terraform-plugin-sdk/v2](https://github.com/hashicorp/terraform-plugin-sdk) from 2.34.0 to 2.35.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-sdk/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-sdk/blob/main/CHANGELOG.md)
- [Commits](hashicorp/terraform-plugin-sdk@v2.34.0...v2.35.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-sdk/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
…b.com/hashicorp/terraform-plugin-sdk/v2-2.35.0

Bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.34.0 to 2.35.0
@carchi8py carchi8py added the New Data Source New Request for an ONTAP Data source label Jan 6, 2025
Copy link
Contributor

@carchi8py carchi8py left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good as well just missing documentation files.

acch added 16 commits January 13, 2025 09:35
Signed-off-by: Achim Christ <[email protected]>
Signed-off-by: Achim Christ <[email protected]>
…tes without requiring refresh

Signed-off-by: Achim Christ <[email protected]>
@acch acch force-pushed the 304-ethernet-port-resource branch from 2ca8f64 to 957f0de Compare January 13, 2025 10:18
@acch
Copy link
Author

acch commented Jan 13, 2025

Thanks @carchi8py for your feedback!

I've manually added the documentation pages in the docs/ directory.

@acch acch requested a review from carchi8py January 13, 2025 10:22
Signed-off-by: Achim Christ <[email protected]>
@acch acch force-pushed the 304-ethernet-port-resource branch from 957f0de to 9a217dd Compare January 13, 2025 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Data Source New Request for an ONTAP Data source 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)
6 participants