Skip to content

Commit 27a1c22

Browse files
authored
[doc] Updating Policer config in Configuration manual (#2144)
* Added Policer config in configuration manual
1 parent 5a651d0 commit 27a1c22

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

doc/Configuration.md

+45
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Table of Contents
3434
* [MAP_PFC_PRIORITY_TO_QUEUE](#map_pfc_priority_to_queue)
3535
* [NTP Global Configuration](#ntp-global-configuration)
3636
* [NTP and SYSLOG servers](#ntp-and-syslog-servers)
37+
* [Policer](#policer)
3738
* [Port](#port)
3839
* [Port Channel](#port-channel)
3940
* [Portchannel member](#portchannel-member)
@@ -1092,6 +1093,50 @@ attributes in those objects.
10921093
}
10931094
```
10941095

1096+
### Policer
1097+
1098+
Below is an example of the policer table configuration.
1099+
```
1100+
{
1101+
"POLICER": {
1102+
"everflow_static_policer": {
1103+
"meter_type": "bytes",
1104+
"mode": "sr_tcm",
1105+
"cir": "12500000",
1106+
"cbs": "12500000",
1107+
"pir": "17500000",
1108+
"pbs": "17500000",
1109+
"color": "aware",
1110+
"red_packet_action": "drop",
1111+
"yellow_packet_action": "drop"
1112+
"green_packet_action": "forward"
1113+
}
1114+
}
1115+
}
1116+
1117+
```
1118+
Key to the table defines policer name Below are the fields
1119+
- meter_type - Mandatory field. Defines how the metering is done. values - bytes, packets
1120+
- mode - Mandatory field. Defines one of the three modes support. values - sr_tcm, tr_tcm, storm
1121+
- cir - Committed information rate bytes/sec or packets/sec based on meter_type
1122+
- cbs - Committed burst size in bytes or packets based on meter_type
1123+
- pir - Peak information rate in bytes/sec or packets/sec based on meter_type
1124+
- pbs - Peak burst size in bytes or packets based on meter_type
1125+
- color - Defines the color source for the policer. values - aware, blind
1126+
- red_packet_action - Defines the action to be taken for red color packets
1127+
- yellow_packet_action - Defines the action to be taken for yellow color packets
1128+
- green_packet_action - Defines the action to be taken for green color packets.
1129+
1130+
The packet action could be:
1131+
1132+
- 'drop'
1133+
- 'forward'
1134+
- 'copy'
1135+
- 'copy_cancel'
1136+
- 'trap'
1137+
- 'log'
1138+
- 'deny'
1139+
- 'transit'
10951140
### Port
10961141

10971142
In this table the physical port configurations are defined. Each object

0 commit comments

Comments
 (0)