-
Notifications
You must be signed in to change notification settings - Fork 6
Added VPC configuration support #16
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
base: main
Are you sure you want to change the base?
Conversation
…vice-specific > configuration_template > device_group > global
make interface group variables interpolation work
make config template variables interpolation work with precedence: de…
…mplates. variables interpolation precedence: device_specific > configuration_template > device_group > global
…_group-level > device_group-devel > global
- Add nxos_vpc_domain resource for VPC domain configuration - Add nxos_vpc_keepalive resource for VPC keepalive settings - Add nxos_vpc_peerlink resource for VPC peer-link configuration - Add nxos_vpc_interface resource for VPC member interfaces - Update main.tf to include VPC resources in dependencies - Add VPC defaults to defaults.yaml - Update README.md with VPC resource documentation - Add comprehensive VPC example with documentation This enables full VPC lifecycle management including: - VPC domain setup with role priority and system MAC - Keepalive configuration for failure detection - Peer-link configuration for synchronization - Member interface assignment with VPC IDs Supports both ethernet and port-channel interfaces as VPC members.
nxos_vpc.tf
Outdated
| key = format("%s/%s", device.name, local.device_config[device.name].vpc_domain.domain_id) | ||
| device = device.name | ||
| domain_id = try(local.device_config[device.name].vpc_domain.domain_id, local.defaults.nxos.devices.configuration.vpc_domains.domain_id, null) | ||
| admin_state = try(local.device_config[device.name].vpc_domain.admin_state, local.defaults.nxos.devices.configuration.vpc_domains.admin_state, true) |
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.
Preferably we do not hardcode default values in the code but rather define them in defaults.yaml and use "null" (omit) as a last resort.
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.
Updated with the 'return null' principle.
Also tried to fix these issues: