Skip to content

Commit

Permalink
fix: adding missing parameters to aside.access_point model and updati…
Browse files Browse the repository at this point in the history
…ng docs
  • Loading branch information
srushti-patl committed Nov 1, 2023
1 parent d82b1fd commit 816df6d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
1 change: 1 addition & 0 deletions docs/data-sources/equinix_fabric_connection.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ Read-Only:
- `key` (String)
- `value` (String)

~> **NOTE:** Connection could be modified from Service Provider Side by using parameters passed to additional_info field: `{"key": "ASN", "value": "1111"}` `{"key": "Global", "value": "false"}` `{"key": "BGP_IBM_CIDR", "value": "172.16.0.18/30"}` `{"key": "BGP_CER_CIDR", "value": "172.16.0.19/30"}`

<a id="nestedatt--change_log"></a>
### Nested Schema for `change_log`
Expand Down
7 changes: 5 additions & 2 deletions docs/resources/equinix_ecx_l2_connection.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ resource "equinix_ecx_l2_connection" "ports-2-azure" {
vlan_ctag = 2512
seller_metro_code = "SV"
named_tag = "PRIVATE"
authorization_key = "c4dff8e8-b52f-4b34-b0d4-c4588f7338f3
authorization_key = "c4dff8e8-b52f-4b34-b0d4-c4588f7338f3"
secondary_connection {
name = "tf-azure-sec"
port_uuid = data.equinix_ecx_port.sv-qinq-sec.id
Expand Down Expand Up @@ -184,8 +184,11 @@ for more details.
docs.

* `additional_info` - (Optional) one or more additional information key-value objects
* `name` - (Required) additional information key
* `key` - (Required) additional information key
* `value` - (Required) additional information value

~> **NOTE:** Connection could be modified from Service Provider Side by using parameters passed to additional_info field: `{"key": "ASN", "value": "1111"}` `{"key": "Global", "value": "false"}` `{"key": "BGP_IBM_CIDR", "value": "172.16.0.18/30"}` `{"key": "BGP_CER_CIDR", "value": "172.16.0.19/30"}`

* `zside_port_uuid` - (Optional) Unique identifier of the port on the remote/destination side
(z-side). Allows you to connect between your own ports or virtual devices across your company's
Equinix Fabric deployment, with no need for a private service profile.
Expand Down
9 changes: 8 additions & 1 deletion docs/resources/equinix_fabric_connection.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Read-Only:

- `id` (String) id

<a id="nestedblock--a_side--access_point--netwrok"></a>
<a id="nestedblock--a_side--access_point--network"></a>
### Nested Schema for `a_side.access_point.network`

Required:
Expand Down Expand Up @@ -197,9 +197,15 @@ Optional:
Optional:

- `type` (String) Virtual Device type
- `name` (String) Customer-assigned Virtual Device Name
- `uuid` (String) Equinix-assigned Virtual Device identifier


Read-Only:

- `href` (String) Unique Resource Identifier


<a id="nestedatt--a_side--access_point--account"></a>
### Nested Schema for `a_side.access_point.account`

Expand All @@ -223,6 +229,7 @@ Optional:
- `key` (String) Additional information key
- `value` (String) Additional information value

~> **NOTE:** Connection could be modified from Service Provider Side by using parameters passed to additional_info field: `{"key": "ASN", "value": "1111"}` `{"key": "Global", "value": "false"}` `{"key": "BGP_IBM_CIDR", "value": "172.16.0.18/30"}` `{"key": "BGP_CER_CIDR", "value": "172.16.0.19/30"}`

<a id="nestedblock--a_side--service_token"></a>
### Nested Schema for `a_side.service_token`
Expand Down
8 changes: 6 additions & 2 deletions equinix/fabric_mapping_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,11 @@ func virtualdeviceToFabric(virtualdeviceList []interface{}) v4.VirtualDevice {
vd := v4.VirtualDevice{}
for _, ll := range virtualdeviceList {
llMap := ll.(map[string]interface{})
hr := llMap["href"].(string)
tp := llMap["type"].(string)
ud := llMap["uuid"].(string)
vd = v4.VirtualDevice{Type_: tp, Uuid: ud}
na := llMap["name"].(string)
vd = v4.VirtualDevice{Href: hr, Type_: tp, Uuid: ud, Name: na}
}
return vd
}
Expand All @@ -279,8 +281,10 @@ func interfaceToFabric(interfaceList []interface{}) v4.ModelInterface {
il := v4.ModelInterface{}
for _, ll := range interfaceList {
llMap := ll.(map[string]interface{})
ud := llMap["uuid"].(string)
tp := llMap["type"].(string)
il = v4.ModelInterface{Type_: tp}
id := llMap["id"].(int)
il = v4.ModelInterface{Type_: tp, Uuid: ud, Id: int32(id)}
}
return il
}
Expand Down

0 comments on commit 816df6d

Please sign in to comment.