-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CXF-98764: Add Sanity FCR to VD connections (#111)
* CXF-98764: Add sanity tests for FCR to VD connections, in prod and UAT * CXF-98764: Change secrets to PNFV user for UAT * CXF-98764: Add example in tests * CXF-98764: Address PR comments * CXF-98764: Address PR comments
- Loading branch information
Showing
10 changed files
with
153 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
tests/examples-without-external-providers/cloud-router-2-virtual-device-connection/main.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
provider "equinix" { | ||
client_id = var.equinix_client_id | ||
client_secret = var.equinix_client_secret | ||
} | ||
|
||
module "cloud_router_virtual_device_connection" { | ||
source = "../../../modules/cloud-router-connection" | ||
|
||
connection_name = var.connection_name | ||
connection_type = var.connection_type | ||
notifications_type = var.notifications_type | ||
notifications_emails = var.notifications_emails | ||
bandwidth = var.bandwidth | ||
purchase_order_number = var.purchase_order_number | ||
|
||
#Aside | ||
aside_fcr_uuid = var.aside_fcr_uuid | ||
|
||
#Zside | ||
zside_ap_type = var.zside_ap_type | ||
zside_vd_type = var.zside_vd_type | ||
zside_vd_uuid = var.zside_vd_uuid | ||
zside_interface_type = var.zside_interface_type | ||
zside_interface_id = var.zside_interface_id | ||
} |
3 changes: 3 additions & 0 deletions
3
...s/examples-without-external-providers/cloud-router-2-virtual-device-connection/outputs.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
output "FCR_VD_Connection" { | ||
value = module.cloud_router_virtual_device_connection.primary_connection_id | ||
} |
17 changes: 17 additions & 0 deletions
17
...hout-external-providers/cloud-router-2-virtual-device-connection/terraform.tfvars.example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
equinix_client_id = "<MyEquinixClientId>" | ||
equinix_client_secret = "<MyEquinixSecret>" | ||
|
||
notifications_type = "ALL" | ||
notifications_emails = ["[email protected]", "[email protected]"] | ||
purchase_order_number = "1-323292" | ||
connection_name = "fcr_2_vd" | ||
connection_type = "IP_VC" | ||
bandwidth = 50 | ||
|
||
aside_fcr_uuid = "<Fabric Cloud Router UUID>" | ||
|
||
zside_ap_type = "VD" | ||
zside_vd_type = "EDGE" | ||
zside_vd_uuid = "<Virtual Device UUID>" | ||
zside_interface_type = "NETWORK" | ||
zside_interface_id = 5 |
63 changes: 63 additions & 0 deletions
63
...examples-without-external-providers/cloud-router-2-virtual-device-connection/variables.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
variable "equinix_client_id" { | ||
description = "Equinix client ID (consumer key), obtained after registering app in the developer platform" | ||
type = string | ||
sensitive = true | ||
} | ||
variable "equinix_client_secret" { | ||
description = "Equinix client secret ID (consumer secret), obtained after registering app in the developer platform" | ||
type = string | ||
sensitive = true | ||
} | ||
variable "connection_name" { | ||
description = "Connection name. An alpha-numeric 24 characters string which can include only hyphens and underscores" | ||
type = string | ||
} | ||
variable "connection_type" { | ||
description = "Defines the connection type like VG_VC, EVPL_VC, EPL_VC, EC_VC, IP_VC, ACCESS_EPL_VC" | ||
type = string | ||
} | ||
variable "notifications_type" { | ||
description = "Notification Type - ALL is the only type currently supported" | ||
type = string | ||
default = "ALL" | ||
} | ||
variable "notifications_emails" { | ||
description = "Array of contact emails" | ||
type = list(string) | ||
} | ||
variable "bandwidth" { | ||
description = "Connection bandwidth in Mbps" | ||
type = number | ||
} | ||
variable "purchase_order_number" { | ||
description = "Purchase order number" | ||
type = string | ||
default = "" | ||
} | ||
variable "aside_fcr_uuid" { | ||
description = "Equinix-assigned Fabric Cloud Router identifier" | ||
type = string | ||
} | ||
variable "zside_ap_type" { | ||
description = "Access point type - COLO, VD, VG, SP, IGW, SUBNET, GW" | ||
type = string | ||
default = "VD" | ||
} | ||
variable "zside_vd_type" { | ||
description = "Virtual Device type - EDGE" | ||
type = string | ||
} | ||
variable "zside_vd_uuid" { | ||
description = "Virtual Device UUID" | ||
type = string | ||
} | ||
variable "zside_interface_type" { | ||
description = "Virtual Device Interface type - CLOUD, NETWORK" | ||
type = string | ||
default = "" | ||
} | ||
variable "zside_interface_id" { | ||
description = "Interface Id" | ||
type = number | ||
default = null | ||
} |
9 changes: 9 additions & 0 deletions
9
.../examples-without-external-providers/cloud-router-2-virtual-device-connection/versions.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
terraform { | ||
required_version = ">= 1.5.4" | ||
required_providers { | ||
equinix = { | ||
source = "equinix/equinix" | ||
version = ">= 1.31.0" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters