-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
Copy pathsonic-passwh.yang
executable file
·76 lines (71 loc) · 2.53 KB
/
sonic-passwh.yang
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
module sonic-passwh {
yang-version 1.1;
namespace "https://github.com/sonic-net/sonic-passwh";
prefix password;
description "PASSWORD HARDENING YANG Module for SONiC OS";
revision 2022-05-03 {
description "First Revision";
}
container sonic-passwh {
typedef feature_state {
type enumeration {
enum enabled;
enum disabled;
}
}
container PASSW_HARDENING {
description "PASSWORD HARDENING part of config_db.json";
container POLICIES {
leaf state {
description "state of the feature";
type feature_state;
default "disabled";
}
leaf expiration {
description "expiration time (days unit)";
type int16 {
range -1..365;
}
}
leaf expiration_warning {
description "expiration warning time (days unit)";
type int8 {
range -1..30;
}
}
leaf history_cnt {
description "num of old password that the system will recorded";
type uint8 {
range 1..100;
}
}
leaf len_min {
description "password min length";
type uint8 {
range 1..32;
}
}
leaf reject_user_passw_match{
description "username password match";
type boolean;
}
leaf lower_class{
description "password lower chars policy";
type boolean;
}
leaf upper_class{
description "password upper chars policy";
type boolean;
}
leaf digits_class{
description "password digits chars policy";
type boolean;
}
leaf special_class{
description "password special chars policy";
type boolean;
}
}/*container policies */
} /* container PASSWH */
}/* container sonic-passwh */
}/* end of module sonic-passwh */