policy_map_types.proto
Messages
PolicyMap
PolicyMap.RulesEntry
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
PolicyMapHwStatuses
PolicyMapKey
PolicyMapRule
PolicyMapStatusValue
TrafficPolicy
A traffic policy instance.
EosSdk reference: eos::traffic_policy_t
TrafficPolicy.RulesEntry
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
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 |
|