faucet.valve_ryuapp module

RyuApp base class for FAUCET/Gauge.

class faucet.valve_ryuapp.EventReconfigure[source]

Bases: ryu.controller.event.EventBase

Event sent to controller to cause config reload.

class faucet.valve_ryuapp.RyuAppBase(*args, **kwargs)[source]

Bases: ryu.base.app_manager.RyuApp

RyuApp base class for FAUCET/Gauge.

OFP_VERSIONS = [4]
connect_or_disconnect_handler(ryu_event)[source]

Handle connection or disconnection of a datapath.

Parameters

ryu_event (ryu.controller.dpset.EventDP) – trigger.

exc_logname = ''
get_setting(setting, path_eval=False)[source]

Return config setting prefaced with logname.

logname = ''
reconnect_handler(ryu_event)[source]

Handle reconnection of a datapath.

Parameters

ryu_event (ryu.controller.dpset.EventDPReconnected) – trigger.

reload_config(_ryu_event)[source]

Handle reloading configuration.

signal_handler(sigid, _)[source]

Handle signals.

Parameters

sigid (int) – signal received.

start()[source]

Start controller.

exception faucet.valve_ryuapp.ValveDeadThreadException[source]

Bases: Exception

Exception raised when a dead thread is detected.