Skip to content

Commit

Permalink
[YANG] Add DPU support in chassis module
Browse files Browse the repository at this point in the history
  • Loading branch information
wen587 committed Nov 8, 2024
1 parent 54b137c commit 263852a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
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
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ 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";
}
Expand Down

0 comments on commit 263852a

Please sign in to comment.