Skip to content

Commit 987a19f

Browse files
author
Ivan Davydenko
committed
[cli-sessions] Fix sonic-serial-console.yang model by importing base types.
1 parent 24a9da0 commit 987a19f

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

src/sonic-yang-models/yang-models/sonic-serial-console.yang

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ module sonic-serial-console {
33
yang-version 1.1;
44
namespace "http://github.com/Azure/sonic-serial-console";
55
prefix cli-sessions;
6+
import sonic-types {
7+
prefix stypes;
8+
}
69
description "SERIAL_CONSOLE YANG Module for SONiC-based OS";
710
revision 2023-06-07 {
811
description "First Revision";
@@ -11,21 +14,21 @@ module sonic-serial-console {
1114
container SERIAL_CONSOLE {
1215
description "SERIAL_CONSOLE part of config_db.json";
1316
container POLICIES {
14-
leaf inactivity_timeout {
15-
description "serial-console inactivity-timeout timer value in minutes";
16-
type int32 {
17-
range "0..35000";
18-
}
19-
default 15;
20-
}
21-
22-
leaf sysrq_capabilities {
23-
description "managing SysRq capabilities";
24-
type stypes:admin_mode;
25-
default disabled;
26-
}
27-
}
28-
/* end of container POLICIES */
17+
leaf inactivity_timeout {
18+
description "serial-console inactivity-timeout timer value in minutes";
19+
type int32 {
20+
range "0..35000";
21+
}
22+
default 15;
23+
}
24+
25+
leaf sysrq_capabilities {
26+
type stypes:admin_mode;
27+
description "managing SysRq capabilities";
28+
default disabled;
29+
}
30+
}
31+
/* end of container POLICIES */
2932
}
3033
/* end of container SERIAL_CONSOLE */
3134
}

0 commit comments

Comments
 (0)