-
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.
Replace transit_peer_network resource with transit_network (#119)
- Loading branch information
Showing
25 changed files
with
458 additions
and
463 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,35 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "catalystcenter_transit_network Data Source - terraform-provider-catalystcenter" | ||
subcategory: "SDA" | ||
description: |- | ||
This data source can read the Transit Network. | ||
--- | ||
|
||
# catalystcenter_transit_network (Data Source) | ||
|
||
This data source can read the Transit Network. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "catalystcenter_transit_network" "example" { | ||
name = "TRANSIT_1" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) Transit Network Name | ||
|
||
### Read-Only | ||
|
||
- `autonomous_system_number` (String) Autonomous System Number | ||
- `control_plane_network_device_ids` (Set of String) List of network device IDs that will be used as control plane nodes | ||
- `id` (String) The id of the object | ||
- `is_multicast_over_transit_enabled` (Boolean) Set this to true to enable multicast over SD-Access transit | ||
- `routing_protocol_name` (String) Routing Protocol Name | ||
- `type` (String) Transit Network Type |
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
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_transit_network Resource - terraform-provider-catalystcenter" | ||
subcategory: "SDA" | ||
description: |- | ||
This resource can manage a Transit Network. | ||
--- | ||
|
||
# catalystcenter_transit_network (Resource) | ||
|
||
This resource can manage a Transit Network. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "catalystcenter_transit_network" "example" { | ||
name = "TRANSIT_1" | ||
type = "IP_BASED_TRANSIT" | ||
routing_protocol_name = "BGP" | ||
autonomous_system_number = "65010" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) Transit Network Name | ||
- `type` (String) Transit Network Type | ||
- Choices: `IP_BASED_TRANSIT`, `SDA_LISP_PUB_SUB_TRANSIT`, `SDA_LISP_BGP_TRANSIT` | ||
|
||
### Optional | ||
|
||
- `autonomous_system_number` (String) Autonomous System Number | ||
- `control_plane_network_device_ids` (Set of String) List of network device IDs that will be used as control plane nodes | ||
- `is_multicast_over_transit_enabled` (Boolean) Set this to true to enable multicast over SD-Access transit | ||
- `routing_protocol_name` (String) Routing Protocol Name | ||
- Choices: `BGP` | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The id of the object | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import catalystcenter_transit_network.example "<name>" | ||
``` |
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
examples/data-sources/catalystcenter_transit_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_transit_network" "example" { | ||
name = "TRANSIT_1" | ||
} |
3 changes: 0 additions & 3 deletions
3
examples/data-sources/catalystcenter_transit_peer_network/data-source.tf
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
terraform import catalystcenter_transit_network.example "<name>" |
6 changes: 6 additions & 0 deletions
6
examples/resources/catalystcenter_transit_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,6 @@ | ||
resource "catalystcenter_transit_network" "example" { | ||
name = "TRANSIT_1" | ||
type = "IP_BASED_TRANSIT" | ||
routing_protocol_name = "BGP" | ||
autonomous_system_number = "65010" | ||
} |
1 change: 0 additions & 1 deletion
1
examples/resources/catalystcenter_transit_peer_network/import.sh
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
examples/resources/catalystcenter_transit_peer_network/resource.tf
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
name: Transit Network | ||
rest_endpoint: /dna/intent/api/v1/sda/transitNetworks | ||
id_from_query_path: response.0 | ||
id_from_query_path_attribute: id | ||
import_no_id: true | ||
data_source_no_id: true | ||
put_no_id: true | ||
put_id_include_path: 0.id | ||
skip_minimum_test: true | ||
doc_category: SDA | ||
attributes: | ||
- model_name: name | ||
type: String | ||
data_path: "0" | ||
response_data_path: response.0.name | ||
query_param: true | ||
mandatory: true | ||
requires_replace: true | ||
description: Transit Network Name | ||
example: TRANSIT_1 | ||
- model_name: type | ||
data_path: "0" | ||
response_data_path: response.0.type | ||
type: String | ||
mandatory: true | ||
description: Transit Network Type | ||
enum_values: [IP_BASED_TRANSIT, SDA_LISP_PUB_SUB_TRANSIT, SDA_LISP_BGP_TRANSIT] | ||
requires_replace: true | ||
example: IP_BASED_TRANSIT | ||
- model_name: routingProtocolName | ||
data_path: "0.ipTransitSettings" | ||
response_data_path: response.0.ipTransitSettings.routingProtocolName | ||
type: String | ||
requires_replace: true | ||
description: Routing Protocol Name | ||
enum_values: [BGP] | ||
example: BGP | ||
- model_name: autonomousSystemNumber | ||
data_path: "0.ipTransitSettings" | ||
response_data_path: response.0.ipTransitSettings.autonomousSystemNumber | ||
type: String | ||
requires_replace: true | ||
description: Autonomous System Number | ||
example: "65010" | ||
- model_name: controlPlaneNetworkDeviceIds | ||
data_path: "0.sdaTransitSettings" | ||
response_data_path: response.0.sdaTransitSettings.controlPlaneNetworkDeviceIds | ||
exclude_test: true | ||
type: Set | ||
element_type: String | ||
description: List of network device IDs that will be used as control plane nodes | ||
- model_name: isMulticastOverTransitEnabled | ||
data_path: "0.sdaTransitSettings" | ||
response_data_path: response.0.sdaTransitSettings.isMulticastOverTransitEnabled | ||
exclude_test: true | ||
type: Bool | ||
description: Set this to true to enable multicast over SD-Access transit |
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
Oops, something went wrong.