To define a code-point alias, include the code-point-aliases statement at the [edit class-of-service] hierarchy level:
- [edit class-of-service]
-
code-point-aliases {
-
- (dscp | dscp-ipv6 | exp | ieee-802.1 | inet-precedence)
{
-
alias-name bits;
- }
- }
The CoS marker types are as follows:
For example, you might set up the following configuration:
- [edit class-of-service]
- code-point-aliases {
-
- dscp {
- my1 110001;
- my2 101110;
- be 000001;
- cs7 110000;
- }
- }
The sample configuration produces this mapping:
user@host> show class-of-service code-point-aliases
dscp
Code point type: dscp
Alias Bit pattern
ef/my2 101110
af11 001010
af12 001100
af13 001110
af21 010010
af22 010100
af23 010110
af31 011010
af32 011100
af33 011110
af41 100010
af42 100100
af43 100110
be 000001
cs1 001000
cs2 010000
cs3 011000
cs4 100000
cs5 101000
nc1/cs6/cs7 110000
nc2 111000
my1 110001
The following notes explain certain results in the mapping: