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

[YANG] Add DPU support in chassis module #20733

Merged
merged 2 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/sonic-yang-models/tests/files/sample_config_db.json
Original file line number Diff line number Diff line change
Expand Up @@ -1895,6 +1895,9 @@
},
"FABRIC-CARD1": {
"admin_status": "down"
},
"DPU2": {
"admin_status": "down"
}
},
"COPP_GROUP": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@
{
"name": "FABRIC-CARD1",
"admin_status": "up"
},
{
"name": "DPU0",
"admin_status": "up"
},
{
"name": "DPU1",
"admin_status": "up"

}
]
}
Expand All @@ -34,6 +43,10 @@
{
"name": "FABRIC-CARD1",
"admin_status": "down"
},
{
"name": "DPU2",
"admin_status": "down"
}
]
}
Expand Down
4 changes: 2 additions & 2 deletions src/sonic-yang-models/yang-models/sonic-chassis-module.yang
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ module sonic-chassis-module {
key "name";
leaf name {
type string {
pattern "LINE-CARD[0-9]+|FABRIC-CARD[0-9]+";
pattern "LINE-CARD[0-9]+|FABRIC-CARD[0-9]+|DPU[0-9]+";
}
description "Line-card or fabric-card module name";
description "Line-card or fabric-card or dpu module name";
}

leaf admin_status {
Expand Down
Loading