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: onboarding Aviatrix edge 7.1 device #38

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

schadalawada
Copy link
Contributor

No description provided.

name = var.name
type_code = data.equinix_network_device_type.this.code
package_code = var.software_package
version = length(var.vnf_version) > 0 ? var.vnf_version : data.equinix_network_device_software.this.version
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a fixed version module. We don't need to expose the version here.

account_number = var.account_number
connectivity = var.connectivity
term_length = var.term_length
interface_count = var.interface_count
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interface count is also fixed here.

description = "Billing account number for a device"
type = string
validation {
condition = length(var.account_number) > 0 && var.account_number != null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Null check should happen before length check. Alternatively, try function is recommended here.

}
}

variable "software_package" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove software package here.

description = "Aviatrix Cloud-Init bootstrap configuration file"
type = string
validation {
condition = length(var.cloud_init_file_id) > 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try function is required here to avoid null pointer.

required_providers {
equinix = {
source = "equinix/equinix"
version = "~> 1.34"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

required_providers {
equinix = {
source = "equinix/equinix"
version = "~> 1.34"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

required_providers {
equinix = {
source = "equinix/equinix"
version = "~> 1.34"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

"launch_version": "UserConnect-6.7.1158"}', owner: 'ubuntu:ubuntu', path: /etc/test/avx_edge_cloud_init.cfg,
permissions: '0755'}

Valid user
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it the newest Aviatrix cloud init config file? The format looks weird here.

| Name | Version |
| --------------------------------------------------------------------------- | --------- |
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.3 |
| <a name="requirement_equinix"></a> [equinix](#requirement\_equinix) | ~> 1.34 |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you update it to >=1.34?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants