ovh / terraform-provider-ovh

Terraform OVH provider
https://registry.terraform.io/providers/ovh/ovh/latest/docs
Mozilla Public License 2.0
182 stars 136 forks source link

Expose gateway's external information and interfaces #638

Closed an0rak-dev closed 4 months ago

an0rak-dev commented 4 months ago

Description

This is done to implement this todo.

Type of change

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Run locally using my own OVH public cloud account.

Test Configuration:

resource "ovh_cloud_project_network_private_subnet" "priv_subnet" { service_name = var.ovh_project_number network_id = ovh_cloud_project_network_private.priv_net.id dhcp = true region = "GRA11" start = "12.0.0.2" end = "12.0.0.254" network = "12.0.0.0/24" no_gateway = false }

resource "ovh_cloud_project_gateway" "subnet_gateway" { service_name = var.ovh_project_number name = "gateway-GRA11" model = "m" region = "GRA11" network_id = ovh_cloud_project_network_private.priv_net.regions_attributes[0].openstackid subnet_id = ovh_cloud_project_network_private_subnet.priv_subnet.id }



# Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings or issues
- [x] I have added acceptance tests that prove my fix is effective or that my feature works
- [x] New and existing acceptance tests pass locally with my changes
- [x] I ran succesfully `go mod vendor` if I added or modify `go.mod` file