faucet.gauge module

RyuApp shim between Ryu and Gauge.

class faucet.gauge.Gauge(*args, **kwargs)[source]

Bases: faucet.valve_ryuapp.RyuAppBase

Ryu app for polling Faucet controlled datapaths for stats/state.

It can poll multiple datapaths. The configuration files for each datapath should be listed, one per line, in the file set as the environment variable GAUGE_CONFIG. It logs to the file set as the environment variable GAUGE_LOG,

exc_logname = 'gauge.exception'
logname = 'gauge'
prom_client = None
reload_config(ryu_event)[source]

Handle request for Gauge config reload.

update_watcher_handler(ryu_event)[source]

Handle port status change event.

Parameters

ryu_event (ryu.controller.event.EventReplyBase) – port status change event.