CiscoDevNet / terraform-provider-iosxe

Terraform Cisco IOS-XE Provider
https://registry.terraform.io/providers/CiscoDevNet/iosxe
Mozilla Public License 2.0
59 stars 22 forks source link

# iosxe_vlan must be replaced // long trink allowed vlan lists // timeout issues? #164

Open Aswertus opened 5 months ago

Aswertus commented 5 months ago

Hi!

I'm sorry that I have to bother you all again! First! Thank you so much for your work for this TF-Provider. It made my life so much easier when replacing an old 4k5 for a new 9k5 :)

A thing stumbled into latley is, that TerraForm sometimes wants to replace all my within TF defined vlans. It doesnt seem to change anything if I apply it, but its still scary every time, since the one 9k5 is my Core-Switch/Router

`# iosxe_vlan.vlan["999"] must be replaced -/+ resource "iosxe_vlan" "vlan" { ~ id = "Cisco-IOS-XE-native:native/vlan/Cisco-IOS-XE-vlan:vlan-list=999" -> (known after apply)

Similar thing happens with switchport interfaces which have long vlan-allowed lists.

`# iosxe_interface_switchport.switchport["7"] will be updated in-place ~ resource "iosxe_interface_switchport" "switchport" { id = "Cisco-IOS-XE-native:native/interface/Port-channel=7/switchport-config/switchport" name = "7"

my first thought was that the provider might be unhappy if the CLI splits it into two rows like switchport trunk allowed vlan 1,60,64,65,67,68,100,111,112,250,1210-1219 switchport trunk allowed vlan add 2000-2500

but I encountered it also with "shorter" interfaces.

Are any timeout problems known? I do the whole switch configuration within one script system-settings, vlan, routing, vrf, acls, interfaces, port-channels and with all together the provider seems to struggle a bit.

Especially when creating Portchannels on this switch, it often fails while applying and I have to redo it a few times until everything works. chaning isnt a problem. it only struggels in the creation process

I have a seconf 9k5 where i do only interface config and there everything works fine without any issues.

I can provice you my whole TF+Yaml Code if nescessary. there isnt anything secret in it ;)

Thank you very much!