/SwitchConfiguration

configure switch VLAN and ports to be access or trunk

switch Configuration

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.

Usage

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

Contributing

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.

License

MIT