Skip to content

Commit

Permalink
[cli-sessions] Fix sonic-serial-console.yang model by importing base …
Browse files Browse the repository at this point in the history
…types.
  • Loading branch information
i-davydenko committed May 21, 2024
1 parent 24a9da0 commit 987a19f
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions src/sonic-yang-models/yang-models/sonic-serial-console.yang
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ module sonic-serial-console {
yang-version 1.1;
namespace "http://github.com/Azure/sonic-serial-console";
prefix cli-sessions;
import sonic-types {
prefix stypes;
}
description "SERIAL_CONSOLE YANG Module for SONiC-based OS";
revision 2023-06-07 {
description "First Revision";
Expand All @@ -11,21 +14,21 @@ module 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 stypes:admin_mode;
default disabled;
}
}
/* end of container POLICIES */
leaf inactivity_timeout {
description "serial-console inactivity-timeout timer value in minutes";
type int32 {
range "0..35000";
}
default 15;
}

leaf sysrq_capabilities {
type stypes:admin_mode;
description "managing SysRq capabilities";
default disabled;
}
}
/* end of container POLICIES */
}
/* end of container SERIAL_CONSOLE */
}
Expand Down

0 comments on commit 987a19f

Please sign in to comment.