-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add optional attribute tier in Create Virtual Device request fo…
…r C8000V and C8000V SDWAN
- Loading branch information
1 parent
692594c
commit b65929a
Showing
10 changed files
with
154 additions
and
9 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -397,6 +397,65 @@ resource "equinix_network_device" "panw-cluster" { | |
} | ||
``` | ||
|
||
```terraform | ||
# Create C8000V BYOL device with bandwidth tier information | ||
data "equinix_network_account" "sv" { | ||
metro_code = "SV" | ||
} | ||
resource "equinix_network_device" "c8000v-byol-tier" { | ||
name = "tf-c8000v-byol" | ||
metro_code = data.equinix_network_account.sv.metro_code | ||
type_code = "C8000V" | ||
self_managed = true | ||
byol = true | ||
package_code = "VM100" | ||
notifications = ["[email protected]", "[email protected]", "[email protected]"] | ||
term_length = 12 | ||
account_number = data.equinix_network_account.sv.number | ||
version = "17.11.01a" | ||
interface_count = 10 | ||
core_count = 2 | ||
tier = 1 | ||
ssh_key { | ||
username = "test" | ||
key_name = "test-key" | ||
} | ||
acl_template_id = "0bff6e05-f0e7-44cd-804a-25b92b835f8b" | ||
} | ||
``` | ||
|
||
```terraform | ||
# Create C8000V BYOL device with numeric bandwidth throughput information | ||
data "equinix_network_account" "sv" { | ||
metro_code = "SV" | ||
} | ||
resource "equinix_network_device" "c8000v-byol-throughput" { | ||
name = "tf-c8000v-byol" | ||
metro_code = data.equinix_network_account.sv.metro_code | ||
type_code = "C8000V" | ||
self_managed = true | ||
byol = true | ||
package_code = "VM100" | ||
notifications = ["[email protected]", "[email protected]", "[email protected]"] | ||
term_length = 12 | ||
account_number = data.equinix_network_account.sv.number | ||
version = "17.11.01a" | ||
interface_count = 10 | ||
core_count = 2 | ||
throughput = "100" | ||
throughput_unit = "Mbps" | ||
ssh_key { | ||
username = "test" | ||
key_name = "test-key" | ||
} | ||
acl_template_id = "0bff6e05-f0e7-44cd-804a-25b92b835f8b" | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
@@ -408,6 +467,7 @@ The following arguments are supported: | |
* `package_code` - (Required) Device software package code. | ||
* `version` - (Required) Device software software version. | ||
* `core_count` - (Required) Number of CPU cores used by device. (**NOTE: Use this field to resize your device. When resizing your HA devices, primary device will be upgraded first. If the upgrade failed, device will be automatically rolled back to the previous state with original core number.**) | ||
* `tier` - (Optional, conflicts with `throughput`,`throughput_unit` ) Select bandwidth tier for your own license, i.e., `0` or `1` or `2` or `3`. Tiers applicable only for C8000V Autonomous or C8000V SDWAN (controller) device types. If not provided, tier is defaulted to '2'. | ||
* `term_length` - (Required) Device term length. | ||
* `self_managed` - (Optional) Boolean value that determines device management mode, i.e., `self-managed` or `Equinix-managed` (default). | ||
* `byol` - (Optional) Boolean value that determines device licensing mode, i.e., `bring your own license` or `subscription` (default). | ||
|
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
27 changes: 27 additions & 0 deletions
27
examples/resources/equinix_network_device/c8000v_byol_with_bandwidth_throughput.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,27 @@ | ||
# Create C8000V BYOL device with numeric bandwidth throughput information | ||
|
||
data "equinix_network_account" "sv" { | ||
metro_code = "SV" | ||
} | ||
|
||
resource "equinix_network_device" "c8000v-byol-throughput" { | ||
name = "tf-c8000v-byol" | ||
metro_code = data.equinix_network_account.sv.metro_code | ||
type_code = "C8000V" | ||
self_managed = true | ||
byol = true | ||
package_code = "VM100" | ||
notifications = ["[email protected]", "[email protected]", "[email protected]"] | ||
term_length = 12 | ||
account_number = data.equinix_network_account.sv.number | ||
version = "17.11.01a" | ||
interface_count = 10 | ||
core_count = 2 | ||
throughput = "100" | ||
throughput_unit = "Mbps" | ||
ssh_key { | ||
username = "test" | ||
key_name = "test-key" | ||
} | ||
acl_template_id = "0bff6e05-f0e7-44cd-804a-25b92b835f8b" | ||
} |
26 changes: 26 additions & 0 deletions
26
examples/resources/equinix_network_device/c8000v_byol_with_bandwidth_tier.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,26 @@ | ||
# Create C8000V BYOL device with bandwidth tier information | ||
|
||
data "equinix_network_account" "sv" { | ||
metro_code = "SV" | ||
} | ||
|
||
resource "equinix_network_device" "c8000v-byol-tier" { | ||
name = "tf-c8000v-byol" | ||
metro_code = data.equinix_network_account.sv.metro_code | ||
type_code = "C8000V" | ||
self_managed = true | ||
byol = true | ||
package_code = "VM100" | ||
notifications = ["[email protected]", "[email protected]", "[email protected]"] | ||
term_length = 12 | ||
account_number = data.equinix_network_account.sv.number | ||
version = "17.11.01a" | ||
interface_count = 10 | ||
core_count = 2 | ||
tier = 1 | ||
ssh_key { | ||
username = "test" | ||
key_name = "test-key" | ||
} | ||
acl_template_id = "0bff6e05-f0e7-44cd-804a-25b92b835f8b" | ||
} |
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
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