Include DPU module to sonic-chassis-module.yang - replaces #20445 #20931
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why I did it
The modules have been extended to DPUx to support SmartSwitch. As part of the SmartSwitch development module "DPUx" needs to be supported in every section of the code that referring to modules.
Work item tracking
Microsoft ADO (number only):
How I did it
Updated "src/sonic-yang-models/yang-models/sonic-chassis-module.yang" file with "|DPU[0-9]" dpu module name.
How to verify it
Update "src/sonic-yang-models/tests/yang_model_tests/tests_config/chassis_module.json" to include DPUx modules and update /src/sonic-yang-models/tests/yang_model_tests/tests/chassis_module.json to verify DPU modules
Update "src/sonic-yang-models/tests/files/sample_config_db.json" to include DPUx modules and verify using src/sonic-yang-mgmt/tests/libyang-python-tests/test_sonic_yang.py
Which release branch to backport (provide reason below if selected)
No need to brackport
Tested branch (Please provide the tested image version)
master
Description for the changelog
Added DPU modules to sonic-chassis-module.yang
Link to config_db schema for YANG module changes
Updated https://github.com/Azure/sonic-buildimage/blob/master/src/sonic-yang-models/doc/Configuration.md
A picture of a cute animal (not mandatory but encouraged)