2.174. vpp_policer module

class vpp_policer.PolicerAction(type, dscp)

Bases: object

sse2 qos action

encode()
class vpp_policer.VppPolicer(test, name, cir, eir, commited_burst, excess_burst, rate_type=0, round_type=0, type=0, color_aware=False, conform_action=<vpp_policer.PolicerAction object>, exceed_action=<vpp_policer.PolicerAction object>, violate_action=<vpp_policer.PolicerAction object>)

Bases: vpp_object.VppObject

Policer

add_vpp_config()

Add the configuration for this object to vpp.

apply_vpp_config(if_index, apply)
bind_vpp_config(worker, bind)
get_stats(worker=None)
object_id()

Return a unique string representing this object.

property policer_index
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.