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

feat:Adding z_side network block to port and virtual device submodule #66

Merged
merged 1 commit into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading