Wednesday, January 2, 2019

I wrote an Ansible lookup plugin to listify vlan and interface ranges

Strings like "101-120,201-220,1021-1040" and "Te3/1-4,Gi3/1-48" are used often in networking, and I thought a lookup plugin that parses these strings would be useful in networking playbooks.

So I wrote csrange (for "comma separated ranges"), and it's on github. Usage, examples and legal/illegal syntax are documented in the repository.

Feedback/comments solicited.

EDIT: typo



No comments:

Post a Comment