Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[action] [PR:16150] qos template change for backend compute-ai deployment #16617

Merged
merged 1 commit into from
Sep 21, 2023

Conversation

mssonicbld
Copy link
Collaborator

Why I did it

To enable qos config for a certain backend deployment mode, for resource-type "Compute-AI".
This deployment has the following requirement:

  • Config below enabled if DEVICE_TYPE as one of backend_device_types

  • Config below enabled if ResourceType is 'Compute-AI'

  • 2 lossless TCs' (2, 3)

  • 2 lossy TCs' (0,1)

  • DSCP to TC map uses 4 DSCP code points and maps to the TCs' as follows:
    "DSCP_TO_TC_MAP": {
    "AZURE": {
    "48" : "0",
    "46" : "1",
    "3" : "3",
    "4" : "4"
    }
    }

  • WRED profile has green {min/max/mark%} as {2M/10M/5%}

This required template change in addition to the vendor qos.json.j2 file (not included here).

Work item tracking
  • Microsoft ADO (number only):

How I did it

How to verify it

  • with the above change and the vendor config change, generated the qos.json file and verified that the objective stated in "Why I did it" was met

  • verified no error

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

Description for the changelog

Update qos_config.j2 for Comptue-AI deployment on one of backend device type roles

Link to config_db schema for YANG module changes

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

#### Why I did it

To enable qos config for a certain backend deployment mode, for resource-type "Compute-AI".
This deployment has the following requirement:

- Config below enabled if DEVICE_TYPE as one of backend_device_types
- Config below enabled if ResourceType is 'Compute-AI'
- 2 lossless TCs' (2, 3)
- 2 lossy TCs' (0,1)
- DSCP to TC map uses 4 DSCP code points and maps to the TCs' as follows:
   "DSCP_TO_TC_MAP": {
        "AZURE": {
             "48" : "0",
            "46" : "1",
            "3"  : "3",
            "4"  : "4"
        }
    }

- WRED profile has green {min/max/mark%} as {2M/10M/5%}

This required template change <as in the PR> in addition to the vendor qos.json.j2 file (not included here).

### How I did it

#### How to verify it
- with the above change and the vendor config change, generated the qos.json file and verified that the objective stated in "Why I did it" was met

- verified no error

### Description for the changelog
Update qos_config.j2 for Comptue-AI deployment on one of backend device type roles
@mssonicbld
Copy link
Collaborator Author

Original PR: #16150

@mssonicbld mssonicbld merged commit 6b48346 into sonic-net:202305 Sep 21, 2023
16 checks passed
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.

2 participants