faucet.valves_manager module¶
Manage a collection of Valves.
- class faucet.valves_manager.ConfigWatcher[source]¶
Bases:
object
Watch config for file or content changes.
- config_file = None¶
- config_file_stats = None¶
- config_hashes = None¶
- class faucet.valves_manager.ValvesManager(logname, logger, metrics, notifier, bgp, dot1x, config_auto_revert, send_flows_to_dp_by_id)[source]¶
Bases:
object
Manage a collection of Valves.
- maintain_stack_root(now, update_time)[source]¶
Maintain current stack root
- Parameters
now (float) – Current time
update_time (int) – Stack root update time interval
- reload_stack_root_config(now)[source]¶
Force reload & apply configuration for stack root changes :param now: Current time :type now: float
- request_reload_configs(now, new_config_file, delete_dp=None)[source]¶
Process a request to load config changes.
- set_stack_root(now, new_root_name)[source]¶
Set stack root
- Parameters
now (float) – Current time
new_root_name (string) – Name of new stack root
- update_config_applied(sent=None, reset=False)[source]¶
Update faucet_config_applied from {dpid: sent} dict, defining applied == sent == enqueued via Ryu