salt.modules.bridge
Module for gathering and managing bridging information
-
Creates a bridge
CLI Example:
salt '*' bridge.add br0
salt.modules.bridge.add(br=None)
-
Adds an interface to a bridge
CLI Example:
salt '*' bridge.addif br0 eth0
salt.modules.bridge.addif(br=None, iface=None)
-
Deletes a bridge
CLI Example:
salt '*' bridge.delete br0
salt.modules.bridge.delete(br=None)
-
Removes an interface from a bridge
CLI Example:
salt '*' bridge.delif br0 eth0
salt.modules.bridge.delif(br=None, iface=None)
-
Returns the bridge to which the interfaces are bond to
CLI Example:
salt '*' bridge.find_interfaces eth0 [eth1...]
salt.modules.bridge.find_interfaces(*args)
-
Returns interfaces attached to a bridge
CLI Example:
salt '*' bridge.interfaces br0
salt.modules.bridge.interfaces(br=None)
-
Returns the machine's bridges list
CLI Example:
salt '*' bridge.list
salt.modules.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
salt.modules.bridge.show(br=None)
-
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
salt.modules.bridge.stp(br=None, state='disable', iface=None)
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/modules/all/salt.modules.bridge.html