This project to mainly ease the process of switch configuration. You can use this playbook to configure switch based on configuration variable file. You can create a VLAN, Interface VLAN with the corresponding IP, and assign the required interfaces to that VLAN.
Edit the configuration file to represent your desired final stage:
vim vars/configurationFile
Run Ansible playbook:
ansible-playbook BSG.yaml
Run Ansible playbook to configure access ports only:
ansible-playbook BSG.yaml --tags ACCESS
Run Ansible playbook to configure trunk ports only:
ansible-playbook BSG.yaml --tags TRUNK
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.