faucet.valve_ryuapp module

OSKenApp base class for FAUCET/Gauge.

class faucet.valve_ryuapp.EventReconfigure[source]

Bases: EventBase

Event sent to controller to cause config reload.

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

Bases: OSKenApp

OSKenApp base class for FAUCET/Gauge.

OFP_VERSIONS = [4]

A list of supported OpenFlow versions for this OSKenApp. The default is all versions supported by the framework.

Examples:

OFP_VERSIONS = [ofproto_v1_0.OFP_VERSION,
                ofproto_v1_2.OFP_VERSION]

If multiple OSKen applications are loaded in the system, the intersection of their OFP_VERSIONS is used.

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.