Spanning Tree Protocol

class utils.stp.RstpSwitch(**kwargs)[source]

Bases: mininet.node.OVSSwitch

Extenstion class that enables Rapid Spanning Tree protocol.

bridgeOpts()[source]

Adds the ‘rstp_enable=true’ flag to the switches options.

utils.stp.wait_STP(switch)[source]

Waits for STP to be configured on the given switch. This is performed by looking for the STP_LEARN status, if the switch is still learning this function waits.