faucet.gauge_nsodbc module

Library for interacting with ODBC databases.

class faucet.gauge_nsodbc.GaugeFlowTableDBLogger(conf, logname, prom_client)[source]

Bases: faucet.gauge_pollers.GaugeFlowTablePoller, faucet.gauge_nsodbc.GaugeNsODBC

Periodically dumps the current datapath flow table to ODBC DB.

update(rcv_time, dp_id, msg)[source]
class faucet.gauge_nsodbc.GaugeNsODBC[source]

Bases: object

Helper class for NSODBC operations

Inheritors must have a WatcherConf object as conf.

conf = None
conn = None
conn_string = None
db_update_counter = None
flow_database = None
refresh_flowdb()[source]
refresh_switchdb()[source]
setup()[source]
switch_database = None