Friday, December 14, 2018

Ansible and switchport configuration

Just wondering what you guys are doing for switchport automation.

We have a fairly modest number of overall ports (~2000), but I have been relying on looping through them all to configure some stuff on a port-by-port basis (descriptions, access VLANs, etc), and then for the majority of the less specific stuff I specify port ranges (which sometimes gets messy if there are discontiguous configs involved).

The specific part takes a long time, and that's mostly what I'm looking to streamline. Our port descriptions are unique in that many of them describe where the patch drops to, which is nice to know, but getting rid of them would get me one step closer to ditching the specific part altogether. It's also kind of silly to run the task against an entire switch if we're only changing one or two ports, but assigning a tag to each port sounds excessive too. Any ideas for a modular approach to port specification for pushing configs?

Any other ideas on how to speed things up?



No comments:

Post a Comment