-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- added support for "hide links" node resource property, fixes #80 - added external connector data source - fixed integration test for groups data source - return error for external connector configuration when device name is provided instead of "NAT" or "System Bridge", fixes #81 - updated all package dependencies - fix CPULimit property for UMS and ExtConn (they are now always NULL starting with 2.6.0) - some cosmetic and test changes - added a add-to-booted-lab lifecycle test - formatted codebase w/ gofumpt - removed cmlclient go.mod local replace and updated cmlclient to 0.0.22 in go.mod - added / updated docs and ran generate - bumped go version to 1.21 in the workflows - added an extconn schema test - updated gh action components, only run one test suite in parallel
- Loading branch information
Showing
68 changed files
with
1,054 additions
and
259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "cml2_connector Data Source - terraform-provider-cml2" | ||
subcategory: "" | ||
description: |- | ||
A data source that retrieves external connectors information from the controller. | ||
--- | ||
|
||
# cml2_connector (Data Source) | ||
|
||
A data source that retrieves external connectors information from the controller. | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Optional | ||
|
||
- `label` (String) A connector label to filter the connector list returned by the controller. Connector labels must be unique, so it's either one group or no group at all if a name filter is provided. | ||
- `tag` (String) A tag name to filter the groups list returned by the controller. Connector tags can be defined on multiple connectors, a list can be returned. | ||
|
||
### Read-Only | ||
|
||
- `connectors` (Attributes List) A list of all permission groups available on the controller. (see [below for nested schema](#nestedatt--connectors)) | ||
- `id` (String) A UUID. The presence of the ID attribute is mandated by the framework. The attribute is a random UUID and has no actual significance. | ||
|
||
<a id="nestedatt--connectors"></a> | ||
### Nested Schema for `connectors` | ||
|
||
Read-Only: | ||
|
||
- `device_name` (String) the actual (Linux network) device name of the external connector. | ||
- `id` (String) External connector identifier, a UUID. | ||
- `label` (String) The label of the external connector, like "NAT" or "System Bridge". | ||
- `protected` (Boolean) Whether the connector is protected, e.g. BPDUs are filtered or not. | ||
- `snooped` (Boolean) True if the IP address snooper listens on this connector. | ||
- `tags` (Set of String) The external connector tag set. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,5 +58,3 @@ Read-Only: | |
|
||
- `id` (String) Lab ID (UUID). | ||
- `permission` (String) Permission. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,5 +76,3 @@ Required: | |
|
||
- `id` (String) Lab ID (UUID). | ||
- `permission` (String) Permission. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,5 +93,3 @@ Optional: | |
Read-Only: | ||
|
||
- `name` (String) Descriptive group name. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Get a list of all connectors on the system with either the provided tag (the | ||
# result can have multiple elements) or with a specific name/label (the result | ||
# has exactly one or zero elements if the label does not exist). | ||
|
||
data "cml2_connector" "nat" { | ||
tag = "NAT" | ||
# Alternatively (or in combination, logical AND): | ||
# label = "System Bridge" | ||
} | ||
|
||
output "nat_connector" { | ||
# The label can be used as the configuration of an external connector node | ||
# The ID is mostly for internal use. | ||
value = data.cml2_connector.nat.connectors[0].label | ||
} |
Oops, something went wrong.