Skip to content

Commit

Permalink
[YANG] Add DPU support in chassis module (#20733)
Browse files Browse the repository at this point in the history
  • Loading branch information
wen587 authored and mssonicbld committed Dec 4, 2024
1 parent fd819a9 commit 7aa6414
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
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 @@ -1848,6 +1848,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

0 comments on commit 7aa6414

Please sign in to comment.