Skip to content

Commit

Permalink
feat:Adding z_side network block to port and virtual device submodule (
Browse files Browse the repository at this point in the history
  • Loading branch information
srushti-patl authored Apr 10, 2024
1 parent 061c508 commit bb3eb3b
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 2 deletions.
26 changes: 26 additions & 0 deletions modules/port-connection/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,19 @@ resource "equinix_fabric_connection" "primary_port_connection" {
}
}
}

dynamic "z_side" {
#Network Z_Side Type
for_each = var.zside_ap_type == "NETWORK" ? [1] : []
content {
access_point {
type = var.zside_ap_type
network {
uuid = var.zside_network_uuid
}
}
}
}
}

resource "equinix_fabric_connection" "secondary_port_connection" {
Expand Down Expand Up @@ -191,4 +204,17 @@ resource "equinix_fabric_connection" "secondary_port_connection" {
}
}
}

dynamic "z_side" {
#Network Z_Side Type
for_each = var.zside_ap_type == "NETWORK" ? [1] : []
content {
access_point {
type = var.zside_ap_type
network {
uuid = var.zside_network_uuid
}
}
}
}
}
7 changes: 6 additions & 1 deletion modules/port-connection/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ variable "secondary_connection_name" {
default = ""
}
variable "connection_type" {
description = "Defines the connection type like VG_VC, EVPL_VC, EPL_VC, EC_VC, IP_VC, ACCESS_EPL_VC"
description = "Defines the connection type like VG_VC, EVPL_VC, EPL_VC, EC_VC, IP_VC, ACCESS_EPL_VC, EVPLAN_VC, EPLAN_VC"
type = string
}
variable "notifications_type" {
Expand Down Expand Up @@ -74,6 +74,7 @@ variable "zside_ap_profile_type" {
variable "zside_location" {
description = "Access point metro code"
type = string
default = ""
}
variable "zside_sp_name" {
description = "Equinix Service Profile Name"
Expand Down Expand Up @@ -105,6 +106,10 @@ variable "zside_peering_type" {
type = string
default = ""
}
variable "zside_network_uuid" {
description = "Equinix Network UUID"
default = ""
}
variable "additional_info" {
description = "Additional info parameters. It's a list of maps containing 'key' and 'value' keys with their corresponding values."
type = list(object({ key = string, value = string }))
Expand Down
23 changes: 23 additions & 0 deletions modules/virtual-device-connection/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,18 @@ resource "equinix_fabric_connection" "virtual_device_connection" {
}
}
}

dynamic "z_side" {
for_each = var.zside_ap_type == "NETWORK" ? [1] : []
content {
access_point {
type = var.zside_ap_type
network {
uuid = var.zside_network_uuid
}
}
}
}
}

resource "equinix_fabric_connection" "secondary_virtual_device_connection" {
Expand Down Expand Up @@ -186,4 +198,15 @@ resource "equinix_fabric_connection" "secondary_virtual_device_connection" {
}
}

dynamic "z_side" {
for_each = var.zside_ap_type == "NETWORK" ? [1] : []
content {
access_point {
type = var.zside_ap_type
network {
uuid = var.zside_network_uuid
}
}
}
}
}
6 changes: 5 additions & 1 deletion modules/virtual-device-connection/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ variable "secondary_connection_name" {
default = ""
}
variable "connection_type" {
description = "Defines the connection type like VG_VC, EVPL_VC, EPL_VC, EC_VC, IP_VC, ACCESS_EPL_VC"
description = "Defines the connection type like VG_VC, EVPL_VC, EPL_VC, EC_VC, IP_VC, ACCESS_EPL_VC, EVPLAN_VC"
type = string
}
variable "notifications_type" {
Expand Down Expand Up @@ -115,6 +115,10 @@ variable "zside_service_token_uuid" {
type = string
default = ""
}
variable "zside_network_uuid" {
description = "Equinix Network UUID"
default = ""
}
variable "additional_info" {
description = "Additional info parameters. It's a list of maps containing 'key' and 'value' keys with their corresponding values."
type = list(object({ key = string, value = string }))
Expand Down

0 comments on commit bb3eb3b

Please sign in to comment.