I’ve figured out how to rename VLANs in aoscx, but I’m at a loss for how to do this in Arista EOS or Cisco IOS/IOSX/NXOS or most other platforms.
I have VLANs in the field that I want to rename, without altering anything else about the VLAN.
Right now, I’m pulling in a giant VLANS hash (dict?) with { vlan_id , name } in it, and passing it to the repsective platform’s _vlans module’s config: bit, in “merged” mode.
Merged mode does not appear to update VLAN names on any of the platforms, although it will create the VLAN with the correct name if it’s missing.
With aoscx_vlan, there’s no config object, I have to iterate anyway with state: update
, and that seems to work.
I do NOT want to use state: replaced
because that alters other VLAN properties, such as whether it’s enabled or not.
Anyone have a suggestion?