-
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.
Fixes in templates, new fabric_l2_virtual_network resource, device un…
…reachability warning for l3 handoff (#152)
- Loading branch information
1 parent
5b0583a
commit ce7c571
Showing
43 changed files
with
1,014 additions
and
251 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "catalystcenter_fabric_l2_virtual_network Data Source - terraform-provider-catalystcenter" | ||
subcategory: "SDA" | ||
description: |- | ||
This data source can read the Fabric L2 Virtual Network. | ||
--- | ||
|
||
# catalystcenter_fabric_l2_virtual_network (Data Source) | ||
|
||
This data source can read the Fabric L2 Virtual Network. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "catalystcenter_fabric_l2_virtual_network" "example" { | ||
fabric_id = "5e6f7b3a-2b0b-4a7d-8b1c-0d4b1cd5e1b1" | ||
vlan_name = "VLAN401" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `fabric_id` (String) ID of the fabric this layer 2 virtual network is to be assigned to | ||
- `vlan_name` (String) Name of the VLAN of the layer 2 virtual network. Must contain only alphanumeric characters, underscores, and hyphens | ||
|
||
### Read-Only | ||
|
||
- `associated_l3_virtual_network_name` (String) Name of the layer 3 virtual network associated with the layer 2 virtual network. This field is provided to support requests related to virtual network anchoring. The layer 3 virtual network must have already been added to the fabric before association. This field must either be present in all payload elements or none | ||
- `fabric_enabled_wireless` (Boolean) Set to true to enable wireless. Default is false | ||
- `id` (String) The id of the object | ||
- `traffic_type` (String) The type of traffic that is served | ||
- `vlan_id` (Number) ID of the VLAN of the layer 2 virtual network. Allowed VLAN range is 2-4093 except for reserved VLANs 1002-1005, and 2046. If deploying on a fabric zone, this vlanId must match the vlanId of the corresponding layer 2 virtual network on the fabric site |
This file was deleted.
Oops, something went wrong.
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,51 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "catalystcenter_fabric_l2_virtual_network Resource - terraform-provider-catalystcenter" | ||
subcategory: "SDA" | ||
description: |- | ||
This resource can manage a Fabric L2 Virtual Network. | ||
--- | ||
|
||
# catalystcenter_fabric_l2_virtual_network (Resource) | ||
|
||
This resource can manage a Fabric L2 Virtual Network. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "catalystcenter_fabric_l2_virtual_network" "example" { | ||
fabric_id = "5e6f7b3a-2b0b-4a7d-8b1c-0d4b1cd5e1b1" | ||
vlan_name = "VLAN401" | ||
vlan_id = 401 | ||
traffic_type = "DATA" | ||
fabric_enabled_wireless = false | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `fabric_id` (String) ID of the fabric this layer 2 virtual network is to be assigned to | ||
- `traffic_type` (String) The type of traffic that is served | ||
- Choices: `DATA`, `VOICE` | ||
- `vlan_name` (String) Name of the VLAN of the layer 2 virtual network. Must contain only alphanumeric characters, underscores, and hyphens | ||
|
||
### Optional | ||
|
||
- `associated_l3_virtual_network_name` (String) Name of the layer 3 virtual network associated with the layer 2 virtual network. This field is provided to support requests related to virtual network anchoring. The layer 3 virtual network must have already been added to the fabric before association. This field must either be present in all payload elements or none | ||
- `fabric_enabled_wireless` (Boolean) Set to true to enable wireless. Default is false | ||
- `vlan_id` (Number) ID of the VLAN of the layer 2 virtual network. Allowed VLAN range is 2-4093 except for reserved VLANs 1002-1005, and 2046. If deploying on a fabric zone, this vlanId must match the vlanId of the corresponding layer 2 virtual network on the fabric site | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The id of the object | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import catalystcenter_fabric_l2_virtual_network.example "<fabric_id>,<vlan_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
4 changes: 4 additions & 0 deletions
4
examples/data-sources/catalystcenter_fabric_l2_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,4 @@ | ||
data "catalystcenter_fabric_l2_virtual_network" "example" { | ||
fabric_id = "5e6f7b3a-2b0b-4a7d-8b1c-0d4b1cd5e1b1" | ||
vlan_name = "VLAN401" | ||
} |
3 changes: 0 additions & 3 deletions
3
examples/data-sources/catalystcenter_template_version/data-source.tf
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
examples/resources/catalystcenter_fabric_l2_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_l2_virtual_network.example "<fabric_id>,<vlan_name>" |
7 changes: 7 additions & 0 deletions
7
examples/resources/catalystcenter_fabric_l2_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,7 @@ | ||
resource "catalystcenter_fabric_l2_virtual_network" "example" { | ||
fabric_id = "5e6f7b3a-2b0b-4a7d-8b1c-0d4b1cd5e1b1" | ||
vlan_name = "VLAN401" | ||
vlan_id = 401 | ||
traffic_type = "DATA" | ||
fabric_enabled_wireless = false | ||
} |
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,72 @@ | ||
--- | ||
name: Fabric L2 Virtual Network | ||
rest_endpoint: /dna/intent/api/v1/sda/layer2VirtualNetworks | ||
id_from_query_path: response.0 | ||
id_from_query_path_attribute: id | ||
import_no_id: true | ||
data_source_no_id: true | ||
skip_minimum_test: true | ||
put_id_include_path: "0.id" | ||
put_no_id: true | ||
doc_category: SDA | ||
attributes: | ||
- model_name: fabricId | ||
requires_replace: true | ||
data_path: '0' | ||
query_param: true | ||
response_data_path: response.0.fabricId | ||
mandatory: true | ||
description: ID of the fabric this layer 2 virtual network is to be assigned to | ||
type: String | ||
example: 5e6f7b3a-2b0b-4a7d-8b1c-0d4b1cd5e1b1 | ||
test_value: catalystcenter_fabric_site.test.id | ||
- model_name: vlanName | ||
requires_replace: true | ||
data_path: '0' | ||
query_param: true | ||
response_data_path: response.0.vlanName | ||
type: String | ||
mandatory: true | ||
description: Name of the VLAN of the layer 2 virtual network. Must contain only alphanumeric characters, underscores, and hyphens | ||
example: VLAN401 | ||
- model_name: vlanId | ||
requires_replace: true | ||
data_path: '0' | ||
response_data_path: response.0.vlanId | ||
type: Int64 | ||
description: ID of the VLAN of the layer 2 virtual network. Allowed VLAN range is 2-4093 except for reserved VLANs 1002-1005, and 2046. If deploying on a fabric zone, this vlanId must match the vlanId of the corresponding layer 2 virtual network on the fabric site | ||
example: 401 | ||
- model_name: trafficType | ||
data_path: '0' | ||
response_data_path: response.0.trafficType | ||
type: String | ||
enum_values: [DATA, VOICE] | ||
mandatory: true | ||
description: The type of traffic that is served | ||
example: DATA | ||
- model_name: isFabricEnabledWireless | ||
data_path: '0' | ||
response_data_path: response.0.isFabricEnabledWireless | ||
tf_name: fabric_enabled_wireless | ||
type: Bool | ||
description: Set to true to enable wireless. Default is false | ||
example: false | ||
- model_name: associatedLayer3VirtualNetworkName | ||
requires_replace: true | ||
data_path: '0' | ||
response_data_path: response.0.associatedLayer3VirtualNetworkName | ||
tf_name: associated_l3_virtual_network_name | ||
type: String | ||
description: Name of the layer 3 virtual network associated with the layer 2 virtual network. This field is provided to support requests related to virtual network anchoring. The layer 3 virtual network must have already been added to the fabric before association. This field must either be present in all payload elements or none | ||
example: SDA_VN1 | ||
exclude_test: true | ||
test_prerequisites: | | ||
resource "catalystcenter_area" "test" { | ||
name = "Area1" | ||
parent_name = "Global" | ||
} | ||
resource "catalystcenter_fabric_site" "test" { | ||
site_id = catalystcenter_area.test.id | ||
pub_sub_enabled = false | ||
authentication_profile_name = "No Authentication" | ||
} |
Oops, something went wrong.