Module for gathering and managing bridging information
Creates a bridge
CLI Example:
salt '*' bridge.add br0
Adds an interface to a bridge
CLI Example:
salt '*' bridge.addif br0 eth0
Deletes a bridge
CLI Example:
salt '*' bridge.delete br0
Removes an interface from a bridge
CLI Example:
salt '*' bridge.delif br0 eth0
Returns the bridge to which the interfaces are bond to
CLI Example:
salt '*' bridge.find_interfaces eth0 [eth1...]
Returns interfaces attached to a bridge
CLI Example:
salt '*' bridge.interfaces br0
Returns the machine's bridges list
CLI Example:
salt '*' bridge.list
Returns bridges interfaces along with enslaved physical interfaces. If no interface is given, all bridges are shown, else only the specified bridge values are returned.
CLI Example:
salt '*' bridge.show
salt '*' bridge.show br0
Sets Spanning Tree Protocol state for a bridge
CLI Example:
salt '*' bridge.stp br0 enable
salt '*' bridge.stp br0 disable
For BSD-like operating systems, it is required to add the interface on which to enable the STP.
CLI Example:
salt '*' bridge.stp bridge0 enable fxp0
salt '*' bridge.stp bridge0 disable fxp0