[yang]: Add yang model for dpu database service (#17191)

### Why I did it
According to the design, the database instances of DPU will be kept in the NPU host.

### How I did it
Declare a new field, `has_per_dpu_scope`, in the config_db for database feature.

#### How to verify it
Check Azp
This commit is contained in:
Ze Gan 2023-12-30 06:22:23 +08:00 committed by GitHub
parent 0e58512353
commit 6d3cef1a9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View File

@ -1825,6 +1825,7 @@
"auto_restart": "always_enabled",
"has_global_scope": "true",
"has_per_asic_scope": "true",
"has_per_dpu_scope": "true",
"delayed": "false",
"high_mem_alert": "disabled",
"state": "always_enabled",

View File

@ -10,6 +10,7 @@
"delayed": "False",
"has_global_scope": "True",
"has_per_asic_scope": "True",
"has_per_dpu_scope": "True",
"set_owner": "local",
"check_up_status": "False",
"support_syslog_rate_limit": "true"

View File

@ -78,6 +78,13 @@ module sonic-feature{
default "false";
}
leaf has_per_dpu_scope {
description "This configuration identicates there will only one service
spawned per DPU";
type feature-scope-status;
default "false";
}
leaf high_mem_alert {
description "This configuration controls the trigger to generate
alert on high memory utilization";