Skip to content

Create H3C Comware V7 switches configuration by Ansible + Jinja2 + YAML.

Notifications You must be signed in to change notification settings

xdai555/ansible_creat_config

Repository files navigation

Description

Create H3C Comware7 switches configuration by Ansible+Jinja2+YAML.

Custom filters

bracket2list

Referenced module: bracket_expansion.

If you have a jinja2 template like {{ G0/0/[0-4] | bracket2list }}
It will be a iterable list: [G0/0/0,G0/0/1,G0/0/2,G1/0/3,G1/0/4]
Then you can use for statement to configure these interfaces.

tolist

This filter can separate a string by comma.

About

Create H3C Comware V7 switches configuration by Ansible + Jinja2 + YAML.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published