Skip to content

Commit 9c9a2c1

Browse files
authored
Replace transit_peer_network resource with transit_network (#119)
1 parent 23b609c commit 9c9a2c1

25 files changed

+458
-463
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- Add `catalystcenter_wireless_ssid` resource and data source
55
- Add `catalystcenter_site` data source
66
- Add `catalystcenter_fabric_port_assignment` resource and data source
7+
- BREAKING CHANGE: Replace `catalystcenter_peer_transit_network` with `catalystcenter_transit_network` resource and data source to use `/dna/intent/api/v1/sda/transitNetworks` API endpoint, this resource now only works with Catalyst Center version 2.3.7.6+
78

89
## 0.1.10
910

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "catalystcenter_transit_network Data Source - terraform-provider-catalystcenter"
4+
subcategory: "SDA"
5+
description: |-
6+
This data source can read the Transit Network.
7+
---
8+
9+
# catalystcenter_transit_network (Data Source)
10+
11+
This data source can read the Transit Network.
12+
13+
## Example Usage
14+
15+
```terraform
16+
data "catalystcenter_transit_network" "example" {
17+
name = "TRANSIT_1"
18+
}
19+
```
20+
21+
<!-- schema generated by tfplugindocs -->
22+
## Schema
23+
24+
### Required
25+
26+
- `name` (String) Transit Network Name
27+
28+
### Read-Only
29+
30+
- `autonomous_system_number` (String) Autonomous System Number
31+
- `control_plane_network_device_ids` (Set of String) List of network device IDs that will be used as control plane nodes
32+
- `id` (String) The id of the object
33+
- `is_multicast_over_transit_enabled` (Boolean) Set this to true to enable multicast over SD-Access transit
34+
- `routing_protocol_name` (String) Routing Protocol Name
35+
- `type` (String) Transit Network Type

docs/data-sources/transit_peer_network.md

Lines changed: 0 additions & 42 deletions
This file was deleted.

docs/guides/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ description: |-
1313
- Add `catalystcenter_wireless_ssid` resource and data source
1414
- Add `catalystcenter_site` data source
1515
- Add `catalystcenter_fabric_port_assignment` resource and data source
16+
- BREAKING CHANGE: Replace `catalystcenter_peer_transit_network` with `catalystcenter_transit_network` resource and data source to use `/dna/intent/api/v1/sda/transitNetworks` API endpoint, this resource now only works with Catalyst Center version 2.3.7.6+
1617

1718
## 0.1.10
1819

docs/resources/transit_network.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "catalystcenter_transit_network Resource - terraform-provider-catalystcenter"
4+
subcategory: "SDA"
5+
description: |-
6+
This resource can manage a Transit Network.
7+
---
8+
9+
# catalystcenter_transit_network (Resource)
10+
11+
This resource can manage a Transit Network.
12+
13+
## Example Usage
14+
15+
```terraform
16+
resource "catalystcenter_transit_network" "example" {
17+
name = "TRANSIT_1"
18+
type = "IP_BASED_TRANSIT"
19+
routing_protocol_name = "BGP"
20+
autonomous_system_number = "65010"
21+
}
22+
```
23+
24+
<!-- schema generated by tfplugindocs -->
25+
## Schema
26+
27+
### Required
28+
29+
- `name` (String) Transit Network Name
30+
- `type` (String) Transit Network Type
31+
- Choices: `IP_BASED_TRANSIT`, `SDA_LISP_PUB_SUB_TRANSIT`, `SDA_LISP_BGP_TRANSIT`
32+
33+
### Optional
34+
35+
- `autonomous_system_number` (String) Autonomous System Number
36+
- `control_plane_network_device_ids` (Set of String) List of network device IDs that will be used as control plane nodes
37+
- `is_multicast_over_transit_enabled` (Boolean) Set this to true to enable multicast over SD-Access transit
38+
- `routing_protocol_name` (String) Routing Protocol Name
39+
- Choices: `BGP`
40+
41+
### Read-Only
42+
43+
- `id` (String) The id of the object
44+
45+
## Import
46+
47+
Import is supported using the following syntax:
48+
49+
```shell
50+
terraform import catalystcenter_transit_network.example "<name>"
51+
```

docs/resources/transit_peer_network.md

Lines changed: 0 additions & 58 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
data "catalystcenter_transit_network" "example" {
2+
name = "TRANSIT_1"
3+
}

examples/data-sources/catalystcenter_transit_peer_network/data-source.tf

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
terraform import catalystcenter_transit_network.example "<name>"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
resource "catalystcenter_transit_network" "example" {
2+
name = "TRANSIT_1"
3+
type = "IP_BASED_TRANSIT"
4+
routing_protocol_name = "BGP"
5+
autonomous_system_number = "65010"
6+
}

0 commit comments

Comments
 (0)