- Edit the
network/ethernet_sseries_input.yml
file for all S5* PowerSwitches such as S5232F-ON.
Name | Default, accepted values | Required? | Purpose |
---|---|---|---|
os10_config |
|
required | Global configurations for the switch. |
breakout_value | 10g-4x, 25g-4x, 40g-1x, 50g-2x, 100g-1x | required | By default, all ports are configured in the 10g-4x breakout mode in which a QSFP28 or QSFP+ port is split into four 10G interfaces. For more information about the breakout modes, see Configure breakout mode. |
snmp_trap_destination | optional |
|
|
snmp_community_string | public | optional |
|
ethernet 1/1/(1-34) config |
|
|
|
save_changes_to_startup | false | required |
|
- When initializing a factory reset switch, the user needs to ensure DHCP is enabled and an IPv6 address is not assigned.
Note
The breakout_value
of a port can only be changed after un-splitting the port.
Running the playbook:
cd network
ansible-playbook ethernet_switch_config.yml -i inventory -e ethernet_switch_username=”” -e ethernet_switch_password=””
- Where
ethernet_switch_username
is the username used to authenticate into the switch. - The inventory file should be a list of IPs separated by newlines. Check out the switch_inventory section in Sample Files
- Where
ethernet_switch_password
is the password used to authenticate into the switch.