You can use the efa policy
qos map
command to create, delete, update, and list QoS
map.
Follow this procedure to configure QoS map.
% efa policy qos map create –-name tenant1PcpToTCMap –-type pcp-to-tc –-rule “pcp[0],tc[7],dp[1]” --rule “pcp[1],tc[6]” --rule “pcp[2-5]tc[5],dp[3]”
% efa policy qos map create –-name tenant1DscpToTCMap –-type dscp-to-tc –-rule “dscp[14-25],tc[7],dp[2]” --rule “dscp[8],tc[1]” --rule “dscp[10],tc[1],dp[1]”
efa policy qos map create –-name tenant1PcpToTCMap –-type pcp-to-tc –-rule “pcp[0],tc[7],dp[1]” --rule “pcp[1],tc[6]” --rule “pcp[2-5]tc[4],dp[3]”
Now map pcp 0 and pcp 1 to different traffic classes using the following command:
% efa policy qos map update –-name tenant1PcpToTCMap –-type pcp-to-tc –-rule “pcp[0],tc[6],dp[1]” --rule “pcp[1],tc[7]”
% efa policy qos map create –-name tenant1DscpToTCMap –-type dscp-to-tc –-rule “dscp[14-25],tc[7],dp[2]” --rule “dscp[8],tc[1]” --rule “dscp[10],tc[1],dp[1]”
Now provide additional DSCP mappings beyond those originally specified using the following command:
% efa policy qos map update –-name tenant1DscpToTCMap –-type dscp-to-tc –-rule “dscp[0-7],tc[1]” --rule “dscp[22-38],tc[5],dp[1]”
The efa policy qos map delete command deletes the configuration from XCO database. Deletion of QoS map fails if it is part of a profile.
% efa policy qos map delete –-name tenant1PcpToTCMap –-type pcp-to-tc
% efa policy qos map delete –-name tenant1DscpToTCMap –-type dscp-to-tc –rule “dscp[0-7]”
When you provide the --ip
option, the app-state of
configuration will be displayed for a given device.
Note
The app-state only conveys the state of the map on the device and not the bindings to the interfaces. To see the app-state of the maps applied on an interface, check the output of QoS profile list commands.% efa policy qos map create –-name tenant1DscpToTCMap10 –-type dscp-to-tc –-rule “dscp[0-7],tc[3],dp[1]” --rule “dscp[8],tc[1]” --rule “dscp[10],tc[1],dp[1]” % efa policy qos map list –-name tenant1DscpToTCMap10 –-type dscp-to-tc QoS Map details: Name: tenant1DscpToTCMap10 +-------+-------+-------+ | DSCP | TC | DP | +-------+-------+-------+ | 0 | 3 | 1 | +-------+-------+-------+ | 1 | 3 | 1 | +-------+-------+-------+ | 2 | 3 | 1 | +-------+-------+-------+ | 3 | 3 | 1 | +-------+-------+-------+ | 4 | 3 | 1 | +-------+-------+-------+ | 5 | 3 | 1 | +-------+-------+-------+ | 6 | 3 | 1 | +-------+-------+-------+ | 7 | 3 | 1 | +-------+-------+-------+ | 8 | 1 | 0 | +-------+-------+-------+ | 10 | 1 | 1 | +-------+-------+-------+
% efa policy qos map list –-name tenant1DscpToTCMap10 –-type dscp-to-tc –-ip 10.20.245.1-2 QoS Map details: Name: tenant1DscpToTCMap10 +-------+-------+-------+ | DSCP | TC | DP | +-------+-------+-------+ | 0 | 3 | 1 | +-------+-------+-------+ | 1 | 3 | 1 | +-------+-------+-------+ | 2 | 3 | 1 | +-------+-------+-------+ | 3 | 3 | 1 | +-------+-------+-------+ | 4 | 3 | 1 | +-------+-------+-------+ | 5 | 3 | 1 | +-------+-------+-------+ | 6 | 3 | 1 | +-------+-------+-------+ | 7 | 3 | 1 | +-------+-------+-------+ | 8 | 1 | 0 | +-------+-------+-------+ | 10 | 1 | 1 | +-------+-------+-------+ Device Bindings: +-----------------------+------+----------------+----------------+ | Name | DSCP | IP Address | App State | +-----------------------+------+----------------+----------------+ | tenant1DscpToTCMap10 | 0 | 10.20.245.1 | cfg-in-sync | +-----------------------+------+----------------+----------------+ | tenant1DscpToTCMap10 | 1 | 10.20.245.1 | cfg-refreshed | +-----------------------+------+----------------+----------------+ | tenant1DscpToTCMap10 | 2 | 10.20.245.1 | cfg-in-sync | +-----------------------+------+----------------+----------------+ | tenant1DscpToTCMap10 | 3 | 10.20.245.1 | cfg-in-sync | +-----------------------+------+----------------+----------------+ | tenant1DscpToTCMap10 | 4 | 10.20.245.1 | cfg-in-sync | +-----------------------+------+----------------+----------------+ | tenant1DscpToTCMap10 | 5 | 10.20.245.1 | cfg-in-sync | +-----------------------+------+----------------+----------------+ | tenant1DscpToTCMap10 | 6 | 10.20.245.1 | cfg-in-sync | +-----------------------+------+----------------+----------------+ | tenant1DscpToTCMap10 | 7 | 10.20.245.1 | cfg-in-sync | +-----------------------+------+----------------+----------------+ | tenant1DscpToTCMap10 | 8 | 10.20.245.1 | cfg-refreshed | +-----------------------+------+----------------+----------------+ | tenant1DscpToTCMap10 | 10 | 10.20.245.1 | cfg-in-sync | +-----------------------+------+----------------+----------------+
% efa policy qos map list –-type dscp-to-tc –-ip 10.20.245.1 QoS Map details: Name: tenant1DscpToTCMap15 +--------+-------+-------+ | DSCP | TC | DP | +--------+-------+-------+ | 10 | 3 | 1 | +--------+-------+-------+ | 15 | 3 | 1 | +--------+-------+-------+ Name: oobDscpToTCMap1 +--------+-------+-------+ | DSCP | TC | DP | +--------+-------+-------+ | 20 | 5 | 1 | +--------+-------+-------+ | 25 | 5 | 1 | +--------+-------+-------+ Device Bindings: +-----------------------+-------+----------------+----------------=-+ | Name | DSCP | IP Address | App State | +-----------------------+-------+----------------+------------------+ | tenant1DscpToTCMap15 | 10 | 10.20.245.1 | cfg-in-sync | +-----------------------+-------+----------------+------------------+ | tenant1DscpToTCMap15 | 15 | 10.20.245.1 | cfg-refreshed | +-----------------------+-------+----------------+------------------+ | oobDscpToTCMap1 | 20 | 10.20.245.1 | cfg-not-managed | +-----------------------+-------+----------------+------------------+ | oobDscpToTCMap1 | 25 | 10.20.245.1 | cfg-not-managed | +-----------------------+-------+----------------+------------------+
Note
For more information about commands and supported parameters, see ExtremeCloud Orchestrator Command Reference, 3.3.0 .