2.149. vpp_object module

abstract vpp object and object registry

class vpp_object.VppObject

Bases: object

Abstract vpp object

abstract add_vpp_config()

Add the configuration for this object to vpp.


Return a unique string representing this object.

abstract query_vpp_config()

Query the vpp configuration.


True if the object is configured

abstract remove_vpp_config()

Remove the configuration for this object from vpp.

class vpp_object.VppObjectRegistry

Bases: object

Class which handles automatic configuration cleanup.

register(obj, logger)

Register an object in the registry.


Remove configuration (if present) from vpp and then remove all objects from the registry.


Remove all object registrations from registry.