-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fabric virtual network with scalable groups resource and data sou…
…rce (#42)
- Loading branch information
1 parent
40c1f0c
commit d7a90bd
Showing
12 changed files
with
794 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "catalystcenter_fabric_virtual_network Data Source - terraform-provider-catalystcenter" | ||
subcategory: "SDA" | ||
description: |- | ||
This data source can read the Fabric Virtual Network. | ||
--- | ||
|
||
# catalystcenter_fabric_virtual_network (Data Source) | ||
|
||
This data source can read the Fabric Virtual Network. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "catalystcenter_fabric_virtual_network" "example" { | ||
id = "SDA_VN1" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `id` (String) The id of the object | ||
|
||
### Read-Only | ||
|
||
- `is_guest` (Boolean) Guest Virtual Network enablement flag | ||
- `sg_names` (List of String) Scalable Groups to be associated to virtual network | ||
- `virtual_network_name` (String) Virtual Network Name to be assigned at global level | ||
- `vmanage_vpn_id` (String) vManage vpn id for SD-WAN |
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,47 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "catalystcenter_fabric_virtual_network Resource - terraform-provider-catalystcenter" | ||
subcategory: "SDA" | ||
description: |- | ||
This resource can manage a Fabric Virtual Network. | ||
--- | ||
|
||
# catalystcenter_fabric_virtual_network (Resource) | ||
|
||
This resource can manage a Fabric Virtual Network. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "catalystcenter_fabric_virtual_network" "example" { | ||
virtual_network_name = "SDA_VN1" | ||
is_guest = false | ||
sg_names = ["Employees"] | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `virtual_network_name` (String) Virtual Network Name to be assigned at global level | ||
|
||
### Optional | ||
|
||
- `is_guest` (Boolean) Guest Virtual Network enablement flag | ||
- Default value: `false` | ||
- `sg_names` (List of String) Scalable Groups to be associated to virtual network | ||
- `vmanage_vpn_id` (String) vManage vpn id for SD-WAN | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The id of the object | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import catalystcenter_fabric_virtual_network.example "SDA_VN1" | ||
``` |
3 changes: 3 additions & 0 deletions
3
examples/data-sources/catalystcenter_fabric_virtual_network/data-source.tf
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,3 @@ | ||
data "catalystcenter_fabric_virtual_network" "example" { | ||
id = "SDA_VN1" | ||
} |
1 change: 1 addition & 0 deletions
1
examples/resources/catalystcenter_fabric_virtual_network/import.sh
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 @@ | ||
terraform import catalystcenter_fabric_virtual_network.example "SDA_VN1" |
5 changes: 5 additions & 0 deletions
5
examples/resources/catalystcenter_fabric_virtual_network/resource.tf
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,5 @@ | ||
resource "catalystcenter_fabric_virtual_network" "example" { | ||
virtual_network_name = "SDA_VN1" | ||
is_guest = false | ||
sg_names = ["Employees"] | ||
} |
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,29 @@ | ||
--- | ||
name: Fabric Virtual Network | ||
rest_endpoint: /dna/intent/api/v1/virtual-network | ||
id_query_param: virtualNetworkName | ||
delete_id_query_param: virtualNetworkName | ||
id_from_attribute: true | ||
doc_category: SDA | ||
attributes: | ||
- model_name: virtualNetworkName | ||
type: String | ||
id: true | ||
description: Virtual Network Name to be assigned at global level | ||
example: SDA_VN1 | ||
- model_name: isGuestVirtualNetwork | ||
tf_name: is_guest | ||
type: Bool | ||
description: Guest Virtual Network enablement flag | ||
default_value: false | ||
example: false | ||
- model_name: scalableGroupNames | ||
tf_name: sg_names | ||
type: StringList | ||
description: Scalable Groups to be associated to virtual network | ||
example: "Employees" | ||
- model_name: vManageVpnId | ||
tf_name: vmanage_vpn_id | ||
type: String | ||
description: vManage vpn id for SD-WAN | ||
exclude_test: true |
126 changes: 126 additions & 0 deletions
126
internal/provider/data_source_catalystcenter_fabric_virtual_network.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
70 changes: 70 additions & 0 deletions
70
internal/provider/data_source_catalystcenter_fabric_virtual_network_test.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.