-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cli-sessions] Update YAML models with new serial-console tree, exten…
…ded ssh-server tree.
- Loading branch information
1 parent
40295f5
commit 1cafc7d
Showing
5 changed files
with
92 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/sonic-yang-models/yang-models/sonic-serial-console.yang
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
//filename: sonic-serial-console.yang | ||
module sonic-serial-console { | ||
yang-version 1.1; | ||
namespace "http://github.com/Azure/sonic-serial-console"; | ||
prefix cli-sessions; | ||
description "SERIAL_CONSOLE YANG Module for SONiC-based OS"; | ||
revision 2023-06-07 { | ||
description "First Revision"; | ||
} | ||
container sonic-serial-console { | ||
container SERIAL_CONSOLE { | ||
description "SERIAL_CONSOLE part of config_db.json"; | ||
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 */ | ||
} | ||
/* end of top level container */ | ||
} | ||
/* end of module sonic-serial-console */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters