You can configure color-mark actions to apply a TOS mark value based on the packet’s color. A color-mark can be applied to a packet after it exits a rate-limit hierarchy.
The type of action that you can create depends on the type policy rule. See Policy Information Model.
Use the following configuration statements to configure color actions:
- policies group name list name rule name color-mark name
{
- green-mark green-mark;
- yellow-mark yellow-mark;
- red-mark red-mark;
- mask mask;
- description description;
- }
To configure a color mark action:
- [edit]
- user@host# edit policies group junose_filter
list in rule pr color cma
- [edit policies group junose_filter list in rule pr filter
cma]
- user@host# set green-mark green-mark
- [edit policies group junose_filter list in rule pr filter
cma]
- user@host# set yellow-mark yellow-mark
- [edit policies group junose_filter list in rule pr filter
cma]
- user@host# set red-mark red-mark
- [edit policies group junose_filter list in rule pr filter
cma]
- user@host# set mask mask
- [edit policies group junose_filter list in rule pr filter
cma]
- user@host# set description description
[edit policies group junose_filter list in rule pr filter cma] user@host# show description mark green packets; green-mark 100; mask 255;