diff --git a/src/sonic-yang-models/tests/files/sample_config_db.json b/src/sonic-yang-models/tests/files/sample_config_db.json index 08e759b6cff7..0c90790e7a94 100644 --- a/src/sonic-yang-models/tests/files/sample_config_db.json +++ b/src/sonic-yang-models/tests/files/sample_config_db.json @@ -1848,6 +1848,9 @@ }, "FABRIC-CARD1": { "admin_status": "down" + }, + "DPU2": { + "admin_status": "down" } }, "COPP_GROUP": { diff --git a/src/sonic-yang-models/tests/yang_model_tests/tests_config/chassis_module.json b/src/sonic-yang-models/tests/yang_model_tests/tests_config/chassis_module.json index a742f91ef54e..b64367bb3cd2 100644 --- a/src/sonic-yang-models/tests/yang_model_tests/tests_config/chassis_module.json +++ b/src/sonic-yang-models/tests/yang_model_tests/tests_config/chassis_module.json @@ -18,6 +18,15 @@ { "name": "FABRIC-CARD1", "admin_status": "up" + }, + { + "name": "DPU0", + "admin_status": "up" + }, + { + "name": "DPU1", + "admin_status": "up" + } ] } @@ -34,6 +43,10 @@ { "name": "FABRIC-CARD1", "admin_status": "down" + }, + { + "name": "DPU2", + "admin_status": "down" } ] } diff --git a/src/sonic-yang-models/yang-models/sonic-chassis-module.yang b/src/sonic-yang-models/yang-models/sonic-chassis-module.yang index e31c252d8a9d..34cc3b2d9906 100644 --- a/src/sonic-yang-models/yang-models/sonic-chassis-module.yang +++ b/src/sonic-yang-models/yang-models/sonic-chassis-module.yang @@ -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 {