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

[New Ressource]: Add cloudavenue_edgegateway_static_route #427

Closed
valentin-dubreuil opened this issue Jul 25, 2023 · 0 comments · Fixed by #431
Closed

[New Ressource]: Add cloudavenue_edgegateway_static_route #427

valentin-dubreuil opened this issue Jul 25, 2023 · 0 comments · Fixed by #431
Assignees
Labels
new-resource New resource

Comments

@valentin-dubreuil
Copy link
Contributor

Description

Provides a resource to manage Edge Gateway Static Routes.

Requested Resource(s) and/or Data Source(s)

cloudavenue_edgegateway_static_route

Potential Terraform Configuration

data "vcd_nsxt_edgegateway" "testing-in-vdc" {
 	name = "XXX"
 	owner_id = "urn:vcloud:vdc:XXX"
}


resource "vcd_network_routed_v2" "nsxt-backed" {
  org         = "cav01ev01ocb0006205"
  name        = "example-routed 1"
  description = "My routed Org VDC network backed by NSX-T"

  edge_gateway_id = data.vcd_nsxt_edgegateway.testing-in-vdc.id

  gateway       = "1.1.1.1"
  prefix_length = 24

  static_ip_pool {
    start_address = "1.1.1.10"
    end_address   = "1.1.1.20"
  }

  static_ip_pool {
    start_address = "1.1.1.100"
    end_address   = "1.1.1.103"
  }
}

resource "vcd_nsxt_edgegateway_static_route" "sr" {
  edge_gateway_id = data.vcd_nsxt_edgegateway.testing-in-vdc.id

  name         = "some-static-route"
  description  = "description for the route"
  network_cidr = "192.168.1.0/24"

  next_hop {
    ip_address     = "1.1.1.12"
    admin_distance = 4

    scope {
      id   = resource.vcd_network_routed_v2.nsxt-backed.id
      type = "NETWORK"
    }
  }

  next_hop {
    ip_address     = "1.1.1.254"
    admin_distance = 4

    scope {
      id   = resource.vcd_network_routed_v2.nsxt-backed.id
      type = "NETWORK"
    }
  }
}

References

No response

Would you like to implement a fix?

None

@azrod azrod self-assigned this Jul 26, 2023
@azrod azrod linked a pull request Jul 26, 2023 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-resource New resource
Projects
None yet
2 participants