Skip to content

Commit

Permalink
Merge pull request #175 from megaport/feat/ibm-vxc-partnerConfig
Browse files Browse the repository at this point in the history
feat: support IBM Partner Config on VXCs
  • Loading branch information
mega-alex authored Dec 12, 2024
2 parents 350830d + cc3d72c commit 1268086
Show file tree
Hide file tree
Showing 4 changed files with 293 additions and 155 deletions.
35 changes: 35 additions & 0 deletions docs/resources/vxc.md
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ Optional:
- `aws_config` (Attributes) The AWS partner configuration. (see [below for nested schema](#nestedatt--a_end_partner_config--aws_config))
- `azure_config` (Attributes) The Azure partner configuration. (see [below for nested schema](#nestedatt--a_end_partner_config--azure_config))
- `google_config` (Attributes) The Google partner configuration. (see [below for nested schema](#nestedatt--a_end_partner_config--google_config))
- `ibm_config` (Attributes) The IBM partner configuration. (see [below for nested schema](#nestedatt--a_end_partner_config--ibm_config))
- `oracle_config` (Attributes) The Oracle partner configuration. (see [below for nested schema](#nestedatt--a_end_partner_config--oracle_config))
- `partner_a_end_config` (Attributes, Deprecated) The partner configuration of the A-End order configuration. Only exists for A-End Configurations. DEPRECATED: Use vrouter_config instead. (see [below for nested schema](#nestedatt--a_end_partner_config--partner_a_end_config))
- `vrouter_config` (Attributes) The partner configuration of the virtual router configuration. (see [below for nested schema](#nestedatt--a_end_partner_config--vrouter_config))
Expand Down Expand Up @@ -420,6 +421,21 @@ Required:
- `pairing_key` (String) The pairing key of the partner configuration. Required for Google partner configurations.


<a id="nestedatt--a_end_partner_config--ibm_config"></a>
### Nested Schema for `a_end_partner_config.ibm_config`

Required:

- `account_id` (String) Customer's IBM Acount ID. Required for all IBM partner configurations.

Optional:

- `customer_asn` (Number) Customer's ASN. Valid ranges: 1-64495, 64999, 131072-4199999999, 4201000000-4201064511. Required unless the connection at the other end of the VXC is an MCR.
- `customer_ip_address` (String) Customer IPv4 network address including subnet mask. Default is /30 assigned from 169.254.0.0/16.
- `name` (String) Description of this connection for identification purposes. Max 100 characters from 0-9 a-z A-Z / - _ , Defaults to "MEGAPORT"
- `provider_ip_address` (String) Provider IPv4 network address including subnet mask.


<a id="nestedatt--a_end_partner_config--oracle_config"></a>
### Nested Schema for `a_end_partner_config.oracle_config`

Expand Down Expand Up @@ -571,6 +587,7 @@ Optional:
- `aws_config` (Attributes) The AWS partner configuration. (see [below for nested schema](#nestedatt--b_end_partner_config--aws_config))
- `azure_config` (Attributes) The Azure partner configuration. (see [below for nested schema](#nestedatt--b_end_partner_config--azure_config))
- `google_config` (Attributes) The Google partner configuration. (see [below for nested schema](#nestedatt--b_end_partner_config--google_config))
- `ibm_config` (Attributes) The IBM partner configuration. (see [below for nested schema](#nestedatt--b_end_partner_config--ibm_config))
- `oracle_config` (Attributes) The Oracle partner configuration. (see [below for nested schema](#nestedatt--b_end_partner_config--oracle_config))
- `partner_a_end_config` (Attributes, Deprecated) The partner configuration of the A-End order configuration. Only exists for A-End Configurations, invalid on B-End Partner Config. DEPRECATED: Use vrouter_config instead. (see [below for nested schema](#nestedatt--b_end_partner_config--partner_a_end_config))
- `vrouter_config` (Attributes) The partner configuration of the virtual router configuration. (see [below for nested schema](#nestedatt--b_end_partner_config--vrouter_config))
Expand Down Expand Up @@ -633,6 +650,21 @@ Required:
- `pairing_key` (String) The pairing key of the partner configuration. Required for Google partner configurations.


<a id="nestedatt--b_end_partner_config--ibm_config"></a>
### Nested Schema for `b_end_partner_config.ibm_config`

Required:

- `account_id` (String) Customer's IBM Acount ID. Required for all IBM partner configurations.

Optional:

- `customer_asn` (Number) Customer's ASN. Valid ranges: 1-64495, 64999, 131072-4199999999, 4201000000-4201064511. Required unless the connection at the other end of the VXC is an MCR.
- `customer_ip_address` (String) Customer IPv4 network address including subnet mask. Default is /30 assigned from 169.254.0.0/16.
- `name` (String) Description of this connection for identification purposes. Max 100 characters from 0-9 a-z A-Z / - _ , Defaults to "MEGAPORT"
- `provider_ip_address` (String) Provider IPv4 network address including subnet mask.


<a id="nestedatt--b_end_partner_config--oracle_config"></a>
### Nested Schema for `b_end_partner_config.oracle_config`

Expand Down Expand Up @@ -778,6 +810,7 @@ Optional:
Optional:

- `account` (String) The account of the CSP connection.
- `account_id` (String) The account ID of the CSP connection.
- `amazon_address` (String) The Amazon address of the CSP connection.
- `asn` (Number) The ASN of the CSP connection.
- `auth_key` (String) The authentication key of the CSP connection.
Expand All @@ -787,6 +820,7 @@ Optional:
- `connection_id` (String) The hosted connection ID of the CSP connection.
- `csp_name` (String) The name of the CSP connection.
- `customer_address` (String) The customer address of the CSP connection.
- `customer_asn` (Number) The customer ASN of the CSP connection.
- `customer_ip4_address` (String) The customer IPv4 address of the CSP connection.
- `customer_ip6_network` (String) The customer IPv6 network of the Transit VXC connection.
- `customer_ip_address` (String) The customer IP address of the CSP connection.
Expand All @@ -799,6 +833,7 @@ Optional:
- `owner_account` (String) The owner's AWS account of the CSP connection.
- `pairing_key` (String) The pairing key of the Google Cloud connection.
- `peer_asn` (Number) The peer ASN of the CSP connection.
- `provider_ip_address` (String) The provider IP address of the CSP connection.
- `resource_name` (String) The resource name of the CSP connection.
- `resource_type` (String) The resource type of the CSP connection.
- `service_key` (String, Sensitive) The Azure service key of the CSP connection.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/hashicorp/terraform-plugin-framework-validators v0.12.0
github.com/hashicorp/terraform-plugin-go v0.22.1
github.com/hashicorp/terraform-plugin-log v0.9.0
github.com/megaport/megaportgo v1.2.6
github.com/megaport/megaportgo v1.2.7
)

require (
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWE
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/mattn/go-runewidth v0.0.9 h1:Lm995f3rfxdpd6TSmuVCHVb/QhupuXlYr8sCI/QdE+0=
github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
github.com/megaport/megaportgo v1.2.6 h1:gm8D5MT6ZKZ065PN3qsSn6dQ02258RugV1XWltU634Q=
github.com/megaport/megaportgo v1.2.6/go.mod h1:I+8jJioFFsF+55sxFYCgcKNUENaOpqzwlsIu6NGA7qk=
github.com/megaport/megaportgo v1.2.7 h1:B3oY+dl7CH6AmzykjzRanQczefyeGTliFEG8nOKs23g=
github.com/megaport/megaportgo v1.2.7/go.mod h1:I+8jJioFFsF+55sxFYCgcKNUENaOpqzwlsIu6NGA7qk=
github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw=
github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw=
github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s=
Expand Down
Loading

0 comments on commit 1268086

Please sign in to comment.