Skip to content

Initial implementation for switch port settings #426

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

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
20d78c8
WIP: initial implementation for switch port settings
internet-diglett Apr 17, 2025
cadb709
update nexus client and add tests
internet-diglett Jun 19, 2025
416afe0
resource(switch_port_settings): update implementation
sudomateo Jul 10, 2025
41b1861
resource(switch_port_settings): fix lint error
sudomateo Jul 11, 2025
3d7d79a
resource(switch_port_settings): use oxide.IpNet type for address
sudomateo Jul 11, 2025
aaa884d
resource(switch_port_settings): allow nil pointer values for attribut…
sudomateo Jul 11, 2025
207a50e
resource(switch_port_settings): fix incorrect types
sudomateo Jul 14, 2025
d83d4f9
resource(switch_port_settings): update to terraform model logic
sudomateo Jul 16, 2025
958b4f3
resource(switch_port_settings): update to oxide params logic
sudomateo Jul 16, 2025
ca2e251
resource(switch_port_settings): add schema validation
sudomateo Jul 16, 2025
d70710e
resource(switch_port_settings): update acceptance tests
sudomateo Jul 17, 2025
b85e1d8
resource(switch_port_settings): skip acceptance test by default
sudomateo Jul 17, 2025
929f399
resource(switch_port_settings): run go fmt
sudomateo Jul 17, 2025
7b050c2
resource(switch_port_settings): implement review feedback
sudomateo Jul 17, 2025
a624e6b
resource(switch_port_settings): add documentation
sudomateo Jul 18, 2025
ccb557d
resource(switch_port_settings): add optional attribute to tests
sudomateo Jul 18, 2025
c1ffc4a
resource(switch_port_settings): update documentation, rename `addr` a…
sudomateo Jul 18, 2025
fd9efc4
resource(switch_port_settings): update documentation
sudomateo Jul 18, 2025
2274402
resource(switch_port_settings): fix bgp_peers.communities type
sudomateo Jul 21, 2025
bd64738
resource(switch_port_settings): implement review feedback
sudomateo Jul 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require (
github.com/hashicorp/terraform-plugin-log v0.9.0
github.com/hashicorp/terraform-plugin-sdk/v2 v2.37.0
github.com/hashicorp/terraform-plugin-testing v1.13.2
github.com/oxidecomputer/oxide.go v0.5.0
github.com/oxidecomputer/oxide.go v0.5.1-0.20250626233125-a289a27e6ee3
github.com/stretchr/testify v1.10.0
)

Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zx
github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw=
github.com/oklog/run v1.0.0 h1:Ru7dDtJNOyC66gQ5dQmaCa0qIsAUFY3sFpK1Xk8igrw=
github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA=
github.com/oxidecomputer/oxide.go v0.5.0 h1:bT5FPUmczVcS84NCLdJZ5PAWHMhINz99QQVLImnd5Sc=
github.com/oxidecomputer/oxide.go v0.5.0/go.mod h1:4gfHlxdBQLs/34UbChPvINd+pGNAnGlASRGEd4xIz1Y=
github.com/oxidecomputer/oxide.go v0.5.1-0.20250626233125-a289a27e6ee3 h1:ygKfgi43iAJeqrAuheTGUmY0zrPE6Vyq5WTZUvbfLJw=
github.com/oxidecomputer/oxide.go v0.5.1-0.20250626233125-a289a27e6ee3/go.mod h1:4gfHlxdBQLs/34UbChPvINd+pGNAnGlASRGEd4xIz1Y=
github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8=
github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c=
github.com/pjbgf/sha1cd v0.3.2 h1:a9wb0bp1oC2TGwStyn0Umc/IGKQnEgF0vVaZ8QF8eo4=
Expand Down
1 change: 1 addition & 0 deletions internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,5 +199,6 @@ func (p *oxideProvider) Resources(_ context.Context) []func() resource.Resource
NewVPCSubnetResource,
NewFloatingIPResource,
NewSiloResource,
NewSwitchPortSettingsResource,
}
}
Loading