Class Map QoS
IOS-XRConfigure 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”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| devices | List | devices | No | |
| device_groups | List | device_groups | No | |
| global | Class | global | No |
devices (iosxr)
Section titled “devices (iosxr)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| configuration | Class | configuration | No |
device_groups (iosxr)
Section titled “device_groups (iosxr)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| configuration | Class | configuration | No |
global (iosxr)
Section titled “global (iosxr)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| configuration | Class | configuration | No |
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]