2.160. vpp_object module¶
abstract vpp object and object registry
-
class
vpp_object.VppObject¶ Bases:
objectAbstract vpp object
-
abstract
add_vpp_config() → None¶ Add the configuration for this object to vpp.
-
object_id() → str¶ Return a unique string representing this object.
-
abstract
query_vpp_config() → bool¶ Query the vpp configuration.
- Returns
True if the object is configured
-
abstract
remove_vpp_config() → None¶ Remove the configuration for this object from vpp.
-
abstract
-
class
vpp_object.VppObjectRegistry¶ Bases:
objectClass which handles automatic configuration cleanup.
-
register(obj: vpp_object.VppObject, logger) → None¶ Register an object in the registry.
-
remove_vpp_config(logger) → None¶ Remove configuration (if present) from vpp and then remove all objects from the registry.
-
unregister_all(logger) → None¶ Remove all object registrations from registry.
-