vpp_object module

class vpp_object.VppObject

Bases: object

Abstract vpp object

add_vpp_config()

Add the configuration for this object to vpp.

object_id()

Return a unique string representing this object.

query_vpp_config()

Query the vpp configuration.

Returns:True if the object is configured
remove_vpp_config()

Remove the configuration for this object from vpp.

class vpp_object.VppObjectRegistry

Bases: object

Class which handles automatic configuration cleanup.

register(o)

Register an object in the registry.

remove_vpp_config(logger)

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