Class Map QoS
Configure Quality of Service (QoS) class maps on a device. Class maps are used to classify traffic based on various criteria such as DSCP values, MPLS experimental bits, QoS groups, and traffic classes.
Diagram
Section titled “Diagram”Classes
Section titled “Classes”configuration (iosxr.devices)
Section titled “configuration (iosxr.devices)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| class_map_qos | List | [class_map_qos] | No |
class_map_qos (iosxr.devices.configuration)
Section titled “class_map_qos (iosxr.devices.configuration)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| class_map_name | String | Yes | ||
| description | String | No | ||
| match_any | Boolean | true, false | No | |
| match_dscp | List | Any[Integer[min: 0, max: 63] or String] | No | |
| match_mpls_experimental_topmost | List | Integer[min: 0, max: 7] | No | |
| match_qos_group | List | Any[Integer[min: 0, max: 7] or String] | No | |
| match_traffic_class | List | Any[Integer[min: 0, max: 7] or String] | No |
Example YAML Code:
Section titled “Example YAML Code:”Example-1: Create a class map with DSCP matching.
iosxr: devices: - name: router-1 host: 10.10.10.1:57400 configuration: class_map_qos: - class_map_name: "TEST" description: "description1" match_dscp: [46] match_mpls_experimental_topmost: [5]Example-2: Create a class map with multiple DSCP values.
iosxr: devices: - name: router-1 host: 10.10.10.1:57400 configuration: class_map_qos: - class_map_name: "VOICE_CLASS" description: "Voice traffic classification" match_dscp: [46, 34]Example-3: Create a class map with DSCP range matching.
iosxr: devices: - name: router-1 host: 10.10.10.1:57400 configuration: class_map_qos: - class_map_name: "RANGE_CLASS" description: "DSCP range classification" match_any: true match_dscp: ["0-5"]Example-4: Create a class map with DSCP code point names.
iosxr: devices: - name: router-1 host: 10.10.10.1:57400 configuration: class_map_qos: - class_map_name: "VIDEO_CLASS" description: "Video traffic classification" match_any: true match_dscp: ["af41", "af42", "af43"]Example-5: Create a class map with QoS group matching.
iosxr: devices: - name: router-1 host: 10.10.10.1:57400 configuration: class_map_qos: - class_map_name: "DATA_CLASS" description: "Data traffic classification" match_qos_group: [1, 2, 3]Example-6: Create a class map with traffic class matching.
iosxr: devices: - name: router-1 host: 10.10.10.1:57400 configuration: class_map_qos: - class_map_name: "PREMIUM_CLASS" description: "Premium traffic classification" match_traffic_class: [4, 5]