Skip to content

Latest commit

 

History

History
67 lines (49 loc) · 2.37 KB

edgegateway_static_route.md

File metadata and controls

67 lines (49 loc) · 2.37 KB
page_title subcategory description
cloudavenue_edgegateway_static_route Resource - cloudavenue
Edge Gateway (Tier-1)
The cloudavenue_edgegateway_static_route resource allows you to create and manage static routes on an Edge Gateway.

cloudavenue_edgegateway_static_route (Resource)

The cloudavenue_edgegateway_static_route resource allows you to create and manage static routes on an Edge Gateway.

Example Usage

resource "cloudavenue_edgegateway_static_route" "example" {
  edge_gateway_name = "myEdgeName"
  name              = "example"
  description       = "example description"
  network_cidr      = "192.168.2.0/24"
  next_hops = [
    {
      ip_address = "192.168.2.254"
    },
    {
      ip_address     = "192.168.2.253"
      admin_distance = 2
    }
  ]
}

Schema

Required

  • name (String) The name of the Static Route.
  • network_cidr (String) The network CIDR of the Static Route. (e.g. 192.168.1.0/24).
  • next_hops (Attributes Set) A set of next hops to use within the static route. Set must contain at least 1 elements. (see below for nested schema)

Optional

  • description (String) The description of the Static Route.
  • edge_gateway_id (String) (ForceNew) The ID of the Edge Gateway. Ensure that one and only one attribute from this collection is set : edge_gateway_name, edge_gateway_id.
  • edge_gateway_name (String) (ForceNew) The name of the Edge Gateway. Ensure that one and only one attribute from this collection is set : edge_gateway_name, edge_gateway_id.

Read-Only

  • id (String) The ID of the Static Route.

Nested Schema for next_hops

Required:

  • ip_address (String) IP address for next hop gateway IP Address for the Static Route. Must be a valid IP with net.ParseIP.

Optional:

  • admin_distance (Number) Admin distance is used to choose which route to use when there are multiple routes for a specific network. The lower the admin distance, the higher the preference for the route. Value defaults to 1. Value must be at least 1.

Import

Import is supported using the following syntax:

terraform import cloudavenue_edgegateway_static_route.example edgeGatewayIDOrName.staticRouteIDOrName