Skip to content

Commit

Permalink
fix: generation
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaportPhilipBrowne committed Dec 17, 2024
1 parent 0085b50 commit e050465
Show file tree
Hide file tree
Showing 12 changed files with 59 additions and 59 deletions.
4 changes: 2 additions & 2 deletions examples/multicloud-scenarios/scenario-1/scenario.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ resource "megaport_vxc" "aws_vxc_1_sin" {

a_end = {
requested_product_uid = megaport_port.port_1_sin.product_uid
ordered_vlan = 301
ordered_vlan = 301
}

b_end = {
Expand All @@ -71,7 +71,7 @@ resource "megaport_vxc" "azure_vxc_1_sin" {

a_end = {
requested_product_uid = megaport_port.port_1_sin.product_uid
ordered_vlan = 401
ordered_vlan = 401
}

b_end = {}
Expand Down
20 changes: 10 additions & 10 deletions examples/multicloud-scenarios/scenario-10/scenario.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,25 @@ resource "megaport_mve" "mve_location_1" {
}

data "megaport_partner" "internet_zone_red" {
connect_type = "TRANSIT"
company_name = "Networks"
product_name = "Megaport Internet"
location_id = data.megaport_location.location_2.id
connect_type = "TRANSIT"
company_name = "Networks"
product_name = "Megaport Internet"
location_id = data.megaport_location.location_2.id
}

resource "megaport_vxc" "transit_vxc_sin_1" {
product_name = "MVE 1 SIN - Internet VXC"
rate_limit = 100
contract_term_months = 1

a_end = {
requested_product_uid = megaport_mve.mve_1_sin.product_uid
}

b_end = {
requested_product_uid = data.megaport_partner.internet_zone_red.product_uid
}

b_end_partner_config = {
partner = "transit"
}
Expand All @@ -82,8 +82,8 @@ resource "megaport_vxc" "aws_vxc_sin_1" {

a_end = {
requested_product_uid = megaport_mve.mve_1_sin.product_uid
inner_vlan = 301
vnic_index = 0
inner_vlan = 301
vnic_index = 0
}

b_end = {
Expand Down Expand Up @@ -142,7 +142,7 @@ resource "megaport_vxc" "google_vxc_sin_1" {
}

b_end = {
requested_product_uid = data.megaport_partner.google_port_1_sin.product_uid
requested_product_uid = data.megaport_partner.google_port_1_sin.product_uid
}

b_end_partner_config = {
Expand Down
16 changes: 8 additions & 8 deletions examples/multicloud-scenarios/scenario-11/scenario.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ resource "megaport_vxc" "transit_vxc_sin_1" {
product_name = "MVE 1 SIN - Internet VXC"
rate_limit = 100
contract_term_months = 1

a_end = {
requested_product_uid = megaport_mve.mve_1_sin.product_uid
}

b_end = {
requested_product_uid = data.megaport_partner.internet_zone_red.product_uid
}

b_end_partner_config = {
partner = "transit"
}
Expand All @@ -102,15 +102,15 @@ resource "megaport_vxc" "transit_vxc_sin_2" {
product_name = "MVE 2 SIN - Internet VXC"
rate_limit = 100
contract_term_months = 1

a_end = {
requested_product_uid = megaport_mve.mve_2_sin.product_uid
}

b_end = {
requested_product_uid = data.megaport_partner.internet_zone_blue.product_uid
}

b_end_partner_config = {
partner = "transit"
}
Expand Down Expand Up @@ -247,7 +247,7 @@ resource "megaport_vxc" "google_vxc_sin_1" {
}

b_end = {
requested_product_uid = data.megaport_partner.google_port_1_sin.product_uid
requested_product_uid = data.megaport_partner.google_port_1_sin.product_uid
}

b_end_partner_config = {
Expand Down Expand Up @@ -277,7 +277,7 @@ resource "megaport_vxc" "google_vxc_sin_2" {
}

b_end = {
requested_product_uid = data.megaport_partner.google_port_2_sin.product_uid
requested_product_uid = data.megaport_partner.google_port_2_sin.product_uid
}

b_end_partner_config = {
Expand Down
8 changes: 4 additions & 4 deletions examples/multicloud-scenarios/scenario-12/scenario.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ resource "megaport_vxc" "transit_vxc_sin_1" {
product_name = "MVE 1 SIN - Internet VXC"
rate_limit = 100
contract_term_months = 1

a_end = {
requested_product_uid = megaport_mve.mve_1_sin.product_uid
}

b_end = {
requested_product_uid = data.megaport_partner.internet_zone_red.product_uid
}

b_end_partner_config = {
partner = "transit"
}
Expand Down Expand Up @@ -168,7 +168,7 @@ resource "megaport_vxc" "google_vxc_sin_1" {
}

b_end = {
requested_product_uid = data.megaport_partner.google_port_1_sin.product_uid
requested_product_uid = data.megaport_partner.google_port_1_sin.product_uid
}

b_end_partner_config = {
Expand Down
14 changes: 7 additions & 7 deletions examples/multicloud-scenarios/scenario-13/scenario.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ resource "megaport_vxc" "transit_vxc_sin_1" {
product_name = "MVE 1 SIN - Internet VXC"
rate_limit = 100
contract_term_months = 1

a_end = {
requested_product_uid = megaport_mve.mve_1_sin.product_uid
}

b_end = {
requested_product_uid = data.megaport_partner.internet_zone_red.product_uid
}

b_end_partner_config = {
partner = "transit"
}
Expand All @@ -102,15 +102,15 @@ resource "megaport_vxc" "transit_vxc_sin_2" {
product_name = "MVE 2 SIN - Internet VXC"
rate_limit = 100
contract_term_months = 1

a_end = {
requested_product_uid = megaport_mve.mve_2_sin.product_uid
}

b_end = {
requested_product_uid = data.megaport_partner.internet_zone_blue.product_uid
}

b_end_partner_config = {
partner = "transit"
}
Expand Down Expand Up @@ -330,7 +330,7 @@ resource "megaport_vxc" "google_vxc_sin_2" {
}

b_end = {
requested_product_uid = data.megaport_partner.google_port_2_sin.product_uid
requested_product_uid = data.megaport_partner.google_port_2_sin.product_uid
}

b_end_partner_config = {
Expand Down
2 changes: 1 addition & 1 deletion examples/multicloud-scenarios/scenario-2/scenario.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ resource "megaport_lag_port" "lag_port_1_sin" {
location_id = data.megaport_location.location_1.id
contract_term_months = 1
marketplace_visibility = false
lag_count = 2
lag_count = 2
diversity_zone = "red"
}

Expand Down
6 changes: 3 additions & 3 deletions examples/multicloud-scenarios/scenario-3/scenario.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ resource "megaport_vxc" "aws_vxc_sin_1" {
requested_product_uid = megaport_mcr.mcr_1_sin.product_uid
}

a_end_partner_config = {
a_end_partner_config = {
partner = "vrouter"
vrouter_config = {
interfaces = [
Expand Down Expand Up @@ -121,7 +121,7 @@ resource "megaport_vxc" "azure_vxc_sin_1" {
azure_config = {
port_choice = "primary"
service_key = "<azure expressroute service key>"
peers = [{
peers = [{
type = "private"
vlan = 401
peer_asn = 65001
Expand Down Expand Up @@ -177,7 +177,7 @@ resource "megaport_vxc" "oracle_vxc_1_sin" {
requested_product_uid = megaport_mcr.mcr_1_sin.product_uid
}

a_end_partner_config = {
a_end_partner_config = {
partner = "vrouter"
vrouter_config = {
interfaces = [
Expand Down
2 changes: 1 addition & 1 deletion examples/multicloud-scenarios/scenario-4/scenario.tf
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ resource "megaport_vxc" "oracle_vxc_2_sin" {

a_end = {
requested_product_uid = megaport_port.port_2_sin.product_uid
ordered_vlan = 602
ordered_vlan = 602
}

b_end = {
Expand Down
12 changes: 6 additions & 6 deletions examples/multicloud-scenarios/scenario-5/scenario.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ resource "megaport_vxc" "aws_vxc_sin_1" {
requested_product_uid = megaport_mcr.mcr_1_sin.product_uid
}

a_end_partner_config = {
a_end_partner_config = {
partner = "vrouter"
vrouter_config = {
interfaces = [
Expand Down Expand Up @@ -110,7 +110,7 @@ resource "megaport_vxc" "aws_vxc_2_sin" {
requested_product_uid = megaport_mcr.mcr_2_sin.product_uid
}

a_end_partner_config = {
a_end_partner_config = {
partner = "vrouter"
vrouter_config = {
interfaces = [
Expand Down Expand Up @@ -160,7 +160,7 @@ resource "megaport_vxc" "azure_vxc_sin_1" {
azure_config = {
port_choice = "primary"
service_key = "<azure expressroute service key>"
peers = [{
peers = [{
type = "private"
vlan = 401
peer_asn = 65001
Expand All @@ -187,7 +187,7 @@ resource "megaport_vxc" "azure_vxc_2_sin" {
azure_config = {
port_choice = "secondary"
service_key = "<azure expressroute service key>"
peers = [{
peers = [{
type = "private"
vlan = 401
peer_asn = 65001
Expand Down Expand Up @@ -271,7 +271,7 @@ resource "megaport_vxc" "oracle_vxc_1_sin" {
requested_product_uid = megaport_mcr.mcr_1_sin.product_uid
}

a_end_partner_config = {
a_end_partner_config = {
partner = "vrouter"
vrouter_config = {
interfaces = [
Expand Down Expand Up @@ -318,7 +318,7 @@ resource "megaport_vxc" "oracle_vxc_2_sin" {
requested_product_uid = megaport_mcr.mcr_2_sin.product_uid
}

a_end_partner_config = {
a_end_partner_config = {
partner = "vrouter"
vrouter_config = {
interfaces = [
Expand Down
12 changes: 6 additions & 6 deletions examples/multicloud-scenarios/scenario-6/scenario.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ resource "megaport_vxc" "aws_vxc_sin_1" {
requested_product_uid = megaport_mcr.mcr_1_sin.product_uid
}

a_end_partner_config = {
a_end_partner_config = {
partner = "vrouter"
vrouter_config = {
interfaces = [
Expand Down Expand Up @@ -110,7 +110,7 @@ resource "megaport_vxc" "aws_vxc_2_sin" {
requested_product_uid = megaport_mcr.mcr_2_sin.product_uid
}

a_end_partner_config = {
a_end_partner_config = {
partner = "vrouter"
vrouter_config = {
interfaces = [
Expand Down Expand Up @@ -160,7 +160,7 @@ resource "megaport_vxc" "azure_vxc_sin_1" {
azure_config = {
port_choice = "primary"
service_key = "<azure expressroute service key>"
peers = [{
peers = [{
type = "private"
vlan = 401
peer_asn = 65001
Expand All @@ -187,7 +187,7 @@ resource "megaport_vxc" "azure_vxc_2_sin" {
azure_config = {
port_choice = "secondary"
service_key = "<azure expressroute service key>"
peers = [{
peers = [{
type = "private"
vlan = 401
peer_asn = 65001
Expand Down Expand Up @@ -271,7 +271,7 @@ resource "megaport_vxc" "oracle_vxc_1_sin" {
requested_product_uid = megaport_mcr.mcr_1_sin.product_uid
}

a_end_partner_config = {
a_end_partner_config = {
partner = "vrouter"
vrouter_config = {
interfaces = [
Expand Down Expand Up @@ -318,7 +318,7 @@ resource "megaport_vxc" "oracle_vxc_2_sin" {
requested_product_uid = megaport_mcr.mcr_2_sin.product_uid
}

a_end_partner_config = {
a_end_partner_config = {
partner = "vrouter"
vrouter_config = {
interfaces = [
Expand Down
Loading

0 comments on commit e050465

Please # to comment.