-
Notifications
You must be signed in to change notification settings - Fork 2
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
base: main
Are you sure you want to change the base?
Conversation
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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" { |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 | |
There was a problem hiding this comment.
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?
No description provided.