faucet.faucet_event module

FAUCET event notification.

class faucet.faucet_event.FaucetEventNotifier(socket_path, metrics, logger)[source]

Bases: object

Event notification, via Unix domain socket.

check_path(socket_path)[source]

Check that socket_path is valid.

notify(dp_id, dp_name, event_dict)[source]

Notify of an event.

start()[source]

Start socket server.

class faucet.faucet_event.NonBlockLock[source]

Bases: object

Non blocking lock that can be used as a context manager.

acquire_nonblock()[source]

Attempt to acquire a lock.

release()[source]

Release lock when done.