Skip to content

policy_map_types.proto

Messages

PolicyMap

Name Value Description
key PolicyMapKey
rules map PolicyMap.RulesEntry

PolicyMap.RulesEntry

Name Value Description
key uint32
value PolicyMapRule

PolicyMapAction

Name Value Description
action_type PolicyActionType
nexthop_group_name string
nexthops repeated bytes
vrf string
dscp uint32 Must be in range 0 to 255.
traffic_class uint32 Must be in range 0 to 255.

PolicyMapHwStatusKey

Name Value Description
intf_id IntfId
direction AclDirection

PolicyMapHwStatuses

Name Value Description
status_values repeated PolicyMapStatusValue

PolicyMapKey

Name Value Description
name string
feature PolicyFeature

PolicyMapRule

Name Value Description
class_map_key PolicyMapKey
oneof policy_map_rule_type_present.policy_map_rule_type PolicyMapRuleType Default value is POLICY_RULE_TYPE_CLASSMAP.
raw_rule AclRuleIp
actions repeated PolicyMapAction

PolicyMapStatusValue

Name Value Description
hw_status_key PolicyMapHwStatusKey
status PolicyMapStatus

TrafficPolicy

A traffic policy instance.

EosSdk reference: eos::traffic_policy_t

Name Value Description
key string
named_counters repeated string
rules map TrafficPolicy.RulesEntry

TrafficPolicy.RulesEntry

Name Value Description
key uint32
value TrafficPolicyRule

TrafficPolicyAction

A single traffic-policy action.

EosSdk reference: eos::traffic_policy_action_t

Name Value Description
action_type TrafficPolicyActionType
counter_name string
goto_class_name string
goto_next bool
dscp uint32
traffic_class uint32
vrf string
mirror_session string
police_rate uint64
police_burst_size uint64
police_rate_unit PoliceRateUnit
police_burst_unit PoliceBurstUnit
nexthop_groups repeated string
nexthops repeated bytes

TrafficPolicyRule

A traffic policy rule, describing traffic match and actions.

EosSdk reference: eos::traffic_policy_rule_t

Name Value Description
match_rule_name string
traffic_policy_rule_type TrafficPolicyRuleType
raw_rule TpRuleFilter
actions repeated TrafficPolicyAction

Enums

PoliceBurstUnit

Name Value Description
POLICE_BURST_UNIT_NULL 0 NULL refers to the default unit in SDK (POLICE_BURST_UNIT_BYTES)
POLICE_BURST_UNIT_BYTES 1
POLICE_BURST_UNIT_KBYTES 2
POLICE_BURST_UNIT_MBYTES 3

PoliceRateUnit

Name Value Description
POLICE_RATE_UNIT_NULL 0 NULL refers to the default unit in SDK (POLICE_RATE_UNIT_BPS)
POLICE_RATE_UNIT_BPS 1
POLICE_RATE_UNIT_KBPS 2
POLICE_RATE_UNIT_MBPS 3
POLICE_RATE_UNIT_GBPS 4

PolicyActionType

The actions a policy map rule may apply to classified packets.

Name Value Description
POLICY_ACTION_NULL 0
POLICY_ACTION_NONE 1
POLICY_ACTION_DROP 2
POLICY_ACTION_NEXTHOP 3
POLICY_ACTION_NEXTHOP_GROUP 4
POLICY_ACTION_DSCP 5
POLICY_ACTION_TRAFFIC_CLASS 6

PolicyFeature

A hardware feature a policy map can be used with.

Name Value Description
POLICY_FEATURE_NULL 0
POLICY_FEATURE_PBR 1
POLICY_FEATURE_QOS 2
POLICY_FEATURE_TAP_AGG 3
POLICY_FEATURE_TRAFFIC_POLICY 4

PolicyMapRuleType

Name Value Description
POLICY_RULE_TYPE_NOT_SET 0
POLICY_RULE_TYPE_CLASSMAP 1
POLICY_RULE_TYPE_IPV4 2
POLICY_RULE_TYPE_IPV6 3

PolicyMapStatus

The policy map hardware status type.

Name Value Description
POLICY_STATUS_NULL 0
POLICY_STATUS_NOT_FOUND 1
POLICY_STATUS_IN_PROGRESS 2
POLICY_STATUS_FAILED 3
POLICY_STATUS_SUCCESS 4

TrafficPolicyActionType

Name Value Description
TRAFFIC_POLICY_ACTION_NULL 0
TRAFFIC_POLICY_ACTION_DROP 1
TRAFFIC_POLICY_ACTION_POLICE 2
TRAFFIC_POLICY_ACTION_COUNT 3
TRAFFIC_POLICY_ACTION_LOG 4
TRAFFIC_POLICY_ACTION_GOTO 5
TRAFFIC_POLICY_ACTION_DSCP 6
TRAFFIC_POLICY_ACTION_TRAFFIC_CLASS 7
TRAFFIC_POLICY_ACTION_SET_VRF 8
TRAFFIC_POLICY_ACTION_SET_VRF_SECONDARY 9
TRAFFIC_POLICY_ACTION_USE_VRF_SECONDARY 10
TRAFFIC_POLICY_ACTION_MIRROR 11
TRAFFIC_POLICY_ACTION_SFLOW 12
TRAFFIC_POLICY_ACTION_NEXTHOP 13
TRAFFIC_POLICY_ACTION_NEXTHOP_GROUP 14

TrafficPolicyDirection

Name Value Description
TRAFFIC_POLICY_DIRECTION_NULL 0
TRAFFIC_POLICY_DIRECTION_INPUT 1