Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CT resource documentation #315

Merged
merged 1 commit into from
Aug 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions docs/data-sources/datacenter_ct_routing_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ data "apstra_datacenter_routing_policy" "default" {

# Declare a "Routing Policy" Connectivity Template Primitive:
data "apstra_datacenter_ct_routing_policy" "default" {
routing_policy_id = data.apstra_datacenter_ct_routing_policy.default.id
routing_policy_id = data.apstra_datacenter_routing_policy.default.id
}

# This data source's `primitive` attribute produces JSON like this:
Expand All @@ -47,15 +47,13 @@ data "apstra_datacenter_ct_routing_policy" "default" {
# Declare a "BGP Peering (Generic System)" Connectivity Template Primitive
# which uses the "Routing Policy" primitive:
data "apstra_datacenter_ct_bgp_peering_generic_system" "bgp_server" {
ipv4_afi_enabled = true
ipv6_afi_enabled = true
ipv4_addressing_type = "addressed"
ipv6_addressing_type = "link_local"
bfd_enabled = true
ttl = 1
password = "big secret"
child_primitives = [
data.apstra_datacenter_routing_policy.default.primitive
data.apstra_datacenter_ct_routing_policy.default.primitive
]
}

Expand All @@ -64,8 +62,6 @@ data "apstra_datacenter_ct_bgp_peering_generic_system" "bgp_server" {
# {
# "type": "AttachBgpOverSubinterfacesOrSvi",
# "data": {
# "ipv4_afi_enabled": true,
# "ipv6_afi_enabled": true,
# "ttl": 1,
# "bfd_enabled": true,
# "password": "big secret",
Expand Down Expand Up @@ -114,13 +110,13 @@ data "apstra_datacenter_ct_ip_link" "ip_link_with_bgp" {
resource "apstra_datacenter_connectivity_template" "t" {
blueprint_id = "b726704d-f80e-4733-9103-abd6ccd8752c"
name = "test-net-handoff"
description = "ip handoff with static routes to test nets"
description = "ip handoff with bgp and default routing policy"
tags = [
"test",
"terraform",
]
primitives = [
data.apstra_datacenter_ct_ip_link.ip_link_with_static_routes.primitive
data.apstra_datacenter_ct_ip_link.ip_link_with_bgp.primitive
]
}
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ data "apstra_datacenter_routing_policy" "default" {

# Declare a "Routing Policy" Connectivity Template Primitive:
data "apstra_datacenter_ct_routing_policy" "default" {
routing_policy_id = data.apstra_datacenter_ct_routing_policy.default.id
routing_policy_id = data.apstra_datacenter_routing_policy.default.id
}

# This data source's `primitive` attribute produces JSON like this:
Expand All @@ -33,15 +33,13 @@ data "apstra_datacenter_ct_routing_policy" "default" {
# Declare a "BGP Peering (Generic System)" Connectivity Template Primitive
# which uses the "Routing Policy" primitive:
data "apstra_datacenter_ct_bgp_peering_generic_system" "bgp_server" {
ipv4_afi_enabled = true
ipv6_afi_enabled = true
ipv4_addressing_type = "addressed"
ipv6_addressing_type = "link_local"
bfd_enabled = true
ttl = 1
password = "big secret"
child_primitives = [
data.apstra_datacenter_routing_policy.default.primitive
data.apstra_datacenter_ct_routing_policy.default.primitive
]
}

Expand All @@ -50,8 +48,6 @@ data "apstra_datacenter_ct_bgp_peering_generic_system" "bgp_server" {
# {
# "type": "AttachBgpOverSubinterfacesOrSvi",
# "data": {
# "ipv4_afi_enabled": true,
# "ipv6_afi_enabled": true,
# "ttl": 1,
# "bfd_enabled": true,
# "password": "big secret",
Expand Down Expand Up @@ -100,12 +96,12 @@ data "apstra_datacenter_ct_ip_link" "ip_link_with_bgp" {
resource "apstra_datacenter_connectivity_template" "t" {
blueprint_id = "b726704d-f80e-4733-9103-abd6ccd8752c"
name = "test-net-handoff"
description = "ip handoff with static routes to test nets"
description = "ip handoff with bgp and default routing policy"
tags = [
"test",
"terraform",
]
primitives = [
data.apstra_datacenter_ct_ip_link.ip_link_with_static_routes.primitive
data.apstra_datacenter_ct_ip_link.ip_link_with_bgp.primitive
]
}