Displaying QoS mismatches between configuration and state

When QoS configurations are applied to interfaces and subinterfaces, some QoS resources may not be readily available to implement all of the required settings, causing a mismatch between the device configuration and the implemented settings as shown in state.

SR Linux provides the ability to display discrepancies between the QoS configuration and the state settings by identifying objects that have not been allocated the resources necessary to implement the configuration.

To display QoS mismatches, use the show qos interfaces mismatches command. To narrow the scope and provide more detailed output, use the interface and path parameters.

If you discover a persistent mismatch, check the related configurations to determine whether they are oversubscribing the available resources.

Show QoS rewrite rules mismatches

The following example identifies QoS discrepancies that appear in the rewrite rules for subinterfaces ethernet-1/11.63 and ethernet-1/11.64. Four mismatches are found in the DSCP, dot1p, and MPLS policies.

--{ candidate shared default }--[ qos ]--
# /show qos interfaces mismatches
-------------------------------------------------------------------------------
Interface                      Path                                           
-------------------------------------------------------------------------------
ethernet-1/11.63               output/rewrite-rules/dscp-policy
-------------------------------------------------------------------------------
ethernet-1/11.64               output/rewrite-rules/dscp-policy
                               output/rewrite-rules/dot1p-policy
                               output/rewrite-rules/mpls-traffic-class-policy
-------------------------------------------------------------------------------
Number of mismatches: 4
Number of instance mismatches: 4

The following example filters the output to mpls paths only, displaying the mismatch in the mpls-traffic-class-policy on ethernet-1/11.64. The policy configuration is set to mpls_rewrite19, however the state is set to default.

--{ candidate shared default }--[ qos ]--
# /show qos interfaces mismatches interface ethernet-1/11* path mpls
-------------------------------------------------------------------------------
QoS Interfaces mismatches
-------------------------------------------------------------------------------
Interface : ethernet-1/11.64
Path      : output/rewrite-rules/mpls-traffic-class-policy
Config    : mpls_rewrite19
State     : default
-------------------------------------------------------------------------------
Number of mismatches: 1
Number of instance mismatches: 1

Show QoS output class map mismatches

The following example identifies QoS discrepancies that appear in the output class maps for subinterfaces lag4.997, lag4.998, and lag4.999.

--{ candidate shared default }--[  ]--
# show qos interfaces mismatches
-------------------------------------------------------------------------------
Interface                      Path                                            
-------------------------------------------------------------------------------
...
lag4.997                       output/output-class-map
-------------------------------------------------------------------------------
lag4.998                       output/output-class-map
-------------------------------------------------------------------------------
lag4.999                       output/output-class-map
-------------------------------------------------------------------------------
Number of mismatches: 8000
Number of instance mismatches: 21568

The following example filters the output to subinterface lag4.999. The output class map configuration is set to outFCMap, while the state is set to Pending. Interface lag4.999 has two instances of mismatch: one on lag4 member link ethernet-1/23 and the other on lag4 member link ethernet-1/24.

--{ candidate shared default }--[  ]--
# show qos interfaces mismatches interface lag4.999
-------------------------------------------------------------------------------
QoS Interfaces mismatches
-------------------------------------------------------------------------------
Interface : lag4.999
Path      : output/output-class-map
Config    : outFcMap
State     : Pending ['ethernet-1/23', 'ethernet-1/24']
-------------------------------------------------------------------------------
Number of mismatches: 1   
Number of instance mismatches: 2

The following example filters the output to match on output paths on subinterface lag4.999. The output again displays the discrepancy on the output-class-map path.

--{ candidate shared default }--[  ]--
# show qos interfaces mismatches interface lag4.999 path output
-------------------------------------------------------------------------------
QoS Interfaces mismatches
-------------------------------------------------------------------------------
Interface : lag4.999
Path      : output/output-class-map
Config    : outFcMap
State     : Pending ['ethernet-1/23', 'ethernet-1/24']
-------------------------------------------------------------------------------
Number of mismatches: 1   
Number of instance mismatches: 2

The following example filters the output to mpls paths on subinterface lag4.999. The output confirms that no discrepancies exist on the mpls paths.

--{ candidate shared default }--[  ]--
# show qos interfaces mismatches interface lag4.999 path mpls
-------------------------------------------------------------------------------
QoS Interfaces mismatches
-------------------------------------------------------------------------------
Number of mismatches: 0   
Number of instance mismatches: 0