p4utils.utils.p4runtime_API.context module

class p4utils.utils.p4runtime_API.context.Context[source]

Bases: object

get_action(name)[source]
get_action_id(name)[source]
get_action_profile(name)[source]
get_action_profile_id(name)[source]
get_action_profiles()[source]
get_actions()[source]
get_counter(name)[source]
get_counter_id(name)[source]
get_counters()[source]
get_digest(name)[source]
get_digest_id(name)[source]
get_digests()[source]
get_direct_counter(name)[source]
get_direct_counter_id(name)[source]
get_direct_counters()[source]
get_direct_meter(name)[source]
get_direct_meter_id(name)[source]
get_direct_meters()[source]
get_meter(name)[source]
get_meter_id(name)[source]
get_meters()[source]
get_mf(table_name, name)[source]
get_mf_id(table_name, name)[source]
get_mf_len(table_name)[source]
get_mf_name(table_name, id_)[source]
get_name_from_id(id_)[source]
get_obj(obj_type, name)[source]
get_obj_by_id(id_)[source]
get_obj_id(obj_type, name)[source]
get_objs(obj_type)[source]
get_param(action_name, name)[source]
get_param_id(action_name, name)[source]
get_param_len(action_name)[source]
get_param_name(action_name, id_)[source]
get_table(name)[source]
get_table_id(name)[source]
get_tables()[source]
set_p4info(p4info)[source]
class p4utils.utils.p4runtime_API.context.P4RuntimeEntity[source]

Bases: enum.Enum

An enumeration.

action_profile_group = 3[source]
action_profile_member = 2[source]
counter_entry = 6[source]
digest_entry = 9[source]
direct_counter_entry = 7[source]
direct_meter_entry = 5[source]
meter_entry = 4[source]
packet_replication_engine_entry = 8[source]
table_entry = 1[source]
class p4utils.utils.p4runtime_API.context.P4Type[source]

Bases: enum.Enum

An enumeration.

action = 2[source]
action_profile = 3[source]
counter = 4[source]
digest = 8[source]
direct_counter = 5[source]
direct_meter = 7[source]
meter = 6[source]
table = 1[source]