Skip to content

[Yang] Update YANG for PORT_QOS_MAP to support switch level mapping#11089

Merged
bingwang-ms merged 5 commits intosonic-net:masterfrom
bingwang-ms:update_yang_for_global_qos_map
Jun 16, 2022
Merged

[Yang] Update YANG for PORT_QOS_MAP to support switch level mapping#11089
bingwang-ms merged 5 commits intosonic-net:masterfrom
bingwang-ms:update_yang_for_global_qos_map

Conversation

@bingwang-ms
Copy link
Contributor

@bingwang-ms bingwang-ms commented Jun 9, 2022

Signed-off-by: bingwang [email protected]

Why I did it

This PR is to update Yang model for PORT_QOS_MAP to support switch level mapping.
After PR #10565, there will be two DSCP_TO_TC_MAP

  • DSCP_TO_TC_MAP|AZURE is the default map, which is used at port level and switch level
  • DSCP_TO_TC_MAP|AZURE_TUNNEL is used to remap the priority of tunnel traffic in dualtor deployment

To address the issue, an entry PORT_QOS_MAP|global will be added into config_db

"PORT_QOS_MAP": {
        "global": {
            "dscp_to_tc_map": "AZURE"
        }
}

The entry will be consumed by qosorch, and the specified map will be applied to switch.

How I did it

Update sonic-port-qos-map.yang

How to verify it

Verified by new test cases

collected 3 items                                                                                                                                                                                     

tests/test_sonic_yang_models.py ..                                                                                                                                                              [ 66%]
tests/yang_model_tests/test_yang_model.py .                                                                                                                                                     [100%]

====================================================================================== 3 passed in 2.48 seconds =======================================================================================

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111

Description for the changelog

Update YANG for PORT_QOS_MAP to support switch level mapping.

Link to config_db schema for YANG module changes

To be added.

A picture of a cute animal (not mandatory but encouraged)

@bingwang-ms
Copy link
Contributor Author

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@bingwang-ms bingwang-ms merged commit a035b2c into sonic-net:master Jun 16, 2022
yxieca pushed a commit that referenced this pull request Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants