Skip to content

policy_map_counters_types.proto

Messages

PolicyMapCounters

The policy map counter entry

Name Value Description
key_id uint64 Short key
key_name PolicyMapCountersKey Long key
counters PolicyMapRuleCounters Counter data
policy_action PolicyMapCountersAction Associated output action
operation PolicyMapCountersOperation Update action of the entry

PolicyMapCountersAction

Output action associated with counter data

Name Value Description
oneof action.deny bool
oneof action.out_action PolicyMapCountersOutAction

PolicyMapCountersKey

Key that uniquely identifies a counter

Name Value Description
policy_key PolicyMapKey Policy map key
class_name string Policy class name
acl_rule string ACL rule name

PolicyMapCountersOutAction

Next-hop information of output action

Name Value Description
oneof nexthop.nexthops PolicyMapCountersOutAction.NexthopAction
oneof nexthop.nexthop_group string
ttl uint32 Egress TTL

PolicyMapCountersOutAction.NexthopAction

Next-hop list details

Name Value Description
recursive bool Recursive (indirect) next-hop
nexthop_addrs repeated bytes List of next-hop addresses
vrf string Egress VRF name

PolicyMapRuleCounters

Counter data

Name Value Description
packets_count uint64 Packet count
bytes_count uint64 Byte count
last_update_timestamp double Counter update timestamp (wallclock, seconds)

Enums

PolicyMapCountersOperation

Possible update actions

Name Value Description
POLICY_MAP_COUNTERS_UPDATE 0 Entry updates previous value
POLICY_MAP_COUNTERS_DELETE 1 Entry deletes previous value