-
Notifications
You must be signed in to change notification settings - Fork 10
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
Problem with resource "nxos_port_channel_interface_member" with list of interfaces #168
Comments
Hi @hani010 ! Can you try adding an explicit dependency to the
|
Hi, |
Hi @hani010, I had the same problem before. You could try putting the "nxos_physical_interface" resource part of the dependecy.
|
@danischm Is it possible to add a new schema item to perform 'Channel group force' for "nxos_port_channel_interface_member" resource ? It seems possible from the API documentation. |
Added the |
I tested the But, it can't be used to update existing port-channel config (eg: vlans, switch mode) as the I guess this is the nature of terraform, which it is great as to deploy the infrastructure. But for operational tasks, such as port configuration changes, it's necessary to fall back to using Ansible. |
We are experiencing a similar issue, when keeping the vlan list empty and specifying vlans on the port channel interface, a change in the vlans results in an error:
Using the force parameter does not change the behavior and dependencies should be in correct order. As mentioned above, it looks like the provider (0.5.4) is having issues when changing the vlan list on a port-channel. |
Hi What about using the resource "nxos_physical_interface" "r_nxos_physical_interface" {
for_each = toset(var.physical_intfs)
interface_id = each.key
admin_state = var.admin_state
description = var.description
mode = var.switchport_mode
# trunk_vlans = var.trunk_vlans_po
lifecycle {
ignore_changes = [
trunk_vlans,
mode,
]
}
} |
Would you mind sharing the NXOS version you are using? I have experiences some issues while destroying the resource |
Hi Jorge, We are running with version Your hint to use the lifecycle argument looks very promising. Changing the number of configured vlans on the port-channel interface is now properly reflected on the physical interfaces. Will have to do some more testing, but it looks you resolved our issue. Regards, Eric. |
Hello,
we wrote an modul that create interfaces and an portchannel but got an error when trying to attached multiple interfaces to the portchannel. This first interfaces is fine, but we get an error to add the other interfaces. When apply terrafrom again, everthing is fine.
Module main.tf
Calling the module
Error Message
The text was updated successfully, but these errors were encountered: