Skip to content

Commit

Permalink
Update serial-console-HLD.md
Browse files Browse the repository at this point in the history
Fix HLD with missed "POLICIES" container in config/cli tree.
  • Loading branch information
i-davydenko authored Aug 14, 2023
1 parent 8e0296d commit 90a8d3e
Showing 1 changed file with 28 additions and 22 deletions.
50 changes: 28 additions & 22 deletions doc/console/serial-console-HLD.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,10 @@ NA

```
SERIAL_CONSOLE:{
"inactivity_timeout": {{min}}
"sysrq-capabilities": {{enabled|disabled}}
POLICIES:{
"inactivity_timeout": {{min}}
"sysrq-capabilities": {{enabled|disabled}}
}
}
```
### 6.2. ConfigDB schemas
Expand Down Expand Up @@ -152,24 +154,26 @@ module sonic-serial-console {
description "SERIAL_CONSOLE part of config_db.json";
key "name";
leaf inactivity_timeout {
description "serial-console inactivity-timeout timer value in minutes";
type int32 {
range "0..35000";
}
default 15;
}
leaf sysrq_capabilities {
description "managing SysRq capabilities";
type enumeration {
enum disabled;
enum enabled;
}
default disabled;
}
container POLICIES {
leaf inactivity_timeout {
description "serial-console inactivity-timeout timer value in minutes";
type int32 {
range "0..35000";
}
default 15;
}
leaf sysrq_capabilities {
description "managing SysRq capabilities";
type enumeration {
enum disabled;
enum enabled;
}
default disabled;
}
}
/* end of container POLICIES */
}
/* end of container SERIAL_CONSOLE */
}
Expand All @@ -185,8 +189,10 @@ The ConfigDB will be extended with next objects:
```json
{
"SERIAL_CONSOLE": {
"inactivity_timeout": "15",
"sysrq_capabilities": "disabled",
POLICIES: {
"inactivity_timeout": "15",
"sysrq_capabilities": "disabled",
}
}
}
```
Expand Down

0 comments on commit 90a8d3e

Please sign in to comment.