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.

object_id()

Return a unique string representing this object.

abstract query_vpp_config()

Query the vpp configuration.

Returns

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_vpp_config(logger)

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

unregister_all(logger)

Remove all object registrations from registry.