Source code for faucet.valve_manager_base

"""Valve Manager base class"""

# pylint: disable=unused-argument


[docs] class ValveManagerBase: """Base class for ValveManager objects. Expected to control the installation of flows into datapath tables. Ideally each datapath table should be controlled by 1 manager only.""" _MISS_PRIORITY = 0 _LOW_PRIORITY = 0x1000 _MATCH_PRIORITY = 0x2000 _LPM_PRIORITY = 0x3000 _HIGH_PRIORITY = 0x4000 _FILTER_PRIORITY = 0x5000
[docs] def initialise_tables(self): """initialise tables controlled by this manager.""" return []
[docs] def add_vlan(self, vlan, cold_start): """install flows in response to a new VLAN""" return []
[docs] def update_vlan(self, vlan): """flows in response to updating an existing VLAN.""" return []
[docs] def add_port(self, port): """install flows in response to a new port""" return []
[docs] def del_vlan(self, vlan): """delete flows in response to a VLAN removal""" return []
[docs] def del_port(self, port): """delete flows in response to a port removal""" return []