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

Move net-dedicated-vlan-attachment module to net-vlan-attachment and … #1420

Merged
merged 2 commits into from
Jun 13, 2023

Conversation

apichick
Copy link
Collaborator

@apichick apichick commented Jun 5, 2023

…added support for Partner interconnect

@sruffilli
Copy link
Collaborator

sruffilli commented Jun 5, 2023

Two general comments:

  1. (my ignorance) I'm unclear about what happens when creating a partner interconnect via terraform, and whether the "pending"-state vlan attachment can be used ad a resource. If not, everything that depends on those VLAN attachment would fail (I'm especially thinking about the blueprint here)
  2. Before merging we need to test these changes in the real world :( unfortunately while I've had the chance to test a dedicated interconnect, testing a partner interconnect involves external stakeholders and I'm not sure we'll be able to test it internally.

Besides that, good job!

@apichick apichick force-pushed the net-vlan-attachment branch 6 times, most recently from 5de078f to 6457ca1 Compare June 7, 2023 08:16
@wiktorn
Copy link
Collaborator

wiktorn commented Jun 7, 2023

Two general comments:

  1. (my ignorance) I'm unclear about what happens when creating a partner interconnect via terraform, and whether the "pending"-state vlan attachment can be used ad a resource. If not, everything that depends on those VLAN attachment would fail (I'm especially thinking about the blueprint here)

I just tested. After creating the attachment it looks as follows:

$ terraform state show 'module.example-va.google_compute_interconnect_attachment.default'
# module.example-va.google_compute_interconnect_attachment.default:
resource "google_compute_interconnect_attachment" "default" {
    admin_enabled             = true
    creation_timestamp        = "2023-06-07T05:34:31.372-07:00"
    description               = "Example vlan attachment"
    edge_availability_domain  = "AVAILABILITY_DOMAIN_ANY"
    encryption                = "NONE"
    id                        = "projects/***/regions/europe-west1/interconnectAttachments/vlan-attachment"
    ipsec_internal_addresses  = []
    mtu                       = "1500"
    name                      = "vlan-attachment"
    pairing_key               = "***/europe-west1/any"
    private_interconnect_info = []
    project                   = "***"
    region                    = "https://www.googleapis.com/compute/v1/projects/***/regions/europe-west1"
    router                    = "https://www.googleapis.com/compute/v1/projects/***/regions/europe-west1/routers/interconnect-router"
    self_link                 = "https://www.googleapis.com/compute/v1/projects/***/regions/europe-west1/interconnectAttachments/vlan-attachment"
    state                     = "PENDING_PARTNER"
    type                      = "PARTNER"
    vlan_tag8021q             = 0
}

Looks like perfectly usable for use as reference in other resources and the blueprint should be fine.

  1. Before merging we need to test these changes in the real world :( unfortunately while I've had the chance to test a dedicated interconnect, testing a partner interconnect involves external stakeholders and I'm not sure we'll be able to test it internally.

Agreed. Though I think we can test quite a lot even without having access to test partner interconnect to iron this out.

@apichick apichick force-pushed the net-vlan-attachment branch from 6457ca1 to 154ddb1 Compare June 8, 2023 05:33
@apichick apichick enabled auto-merge June 9, 2023 11:02
@apichick apichick force-pushed the net-vlan-attachment branch from 6f975d2 to 500179f Compare June 12, 2023 12:21
@apichick apichick merged commit 1986033 into GoogleCloudPlatform:master Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants