Skip to content

Commit

Permalink
evpn gateway resource documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismarget-j committed Nov 4, 2023
1 parent 30943e8 commit 96157d8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apstra/resource_datacenter_external_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ func (o *resourceDatacenterExternalGateway) Configure(ctx context.Context, req r

func (o *resourceDatacenterExternalGateway) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
resp.Schema = schema.Schema{
MarkdownDescription: docCategoryDatacenter + "This resource creates an External Gateway within a Blueprint. " +
"Prior to Apstra 4.2 these were called \"EVPN Remote Gateway\"",
MarkdownDescription: docCategoryDatacenter + "This resource creates a DCI External Gateway within a Blueprint. " +
"Prior to Apstra 4.2 these were called \"Remote EVPN Gateways\"",
Attributes: blueprint.DatacenterExternalGateway{}.ResourceAttributes(),
}
}
Expand Down
18 changes: 18 additions & 0 deletions examples/resources/apstra_datacenter_external_gateway/example.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This example creates an "over the top" DCI External Gateway.
# Note: Prior to Apstra 4.2 these were known as "Remote EVPN Gateways"

resource "apstra_datacenter_external_gateway" "example" {
blueprint_id = "b4c4ed6a-9c6a-4577-b3d4-78705c08a272"
name = "example gateway"
ip_address = "192.0.2.1"
asn = 64510
evpn_route_types = "all" # "all" or "type5_only"
ttl = 10
keepalive_time = 3
hold_time = 9
password = "big secret"
local_gateway_nodes = [
"JGcTJy_jP4898Z13WHU", // use apstra_datacenter_systems data
"Fx-fVa7t_LYp7JtQ_nU", // source to find node IDs
]
}

0 comments on commit 96157d8

Please sign in to comment.