From 96157d8d9efea4717529a7f8507aeefaca0cfe38 Mon Sep 17 00:00:00 2001 From: Chris Marget Date: Sat, 4 Nov 2023 07:44:54 -0400 Subject: [PATCH] evpn gateway resource documentation --- apstra/resource_datacenter_external_gateway.go | 4 ++-- .../example.tf | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 examples/resources/apstra_datacenter_external_gateway/example.tf diff --git a/apstra/resource_datacenter_external_gateway.go b/apstra/resource_datacenter_external_gateway.go index 19361e2f..2ac1c79c 100644 --- a/apstra/resource_datacenter_external_gateway.go +++ b/apstra/resource_datacenter_external_gateway.go @@ -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(), } } diff --git a/examples/resources/apstra_datacenter_external_gateway/example.tf b/examples/resources/apstra_datacenter_external_gateway/example.tf new file mode 100644 index 00000000..2441ca19 --- /dev/null +++ b/examples/resources/apstra_datacenter_external_gateway/example.tf @@ -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 + ] +}