blob: 086d018a475c45bf3f339df171a5e6db044644ce (
plain)
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
|
module state-lists {
yang-version 1.1;
namespace "urn:state-lists";
prefix sl;
container cont {
config false;
grouping group1 {
leaf leaf3 {
type tdef2 {
length "3..9 | 30..40";
pattern "[ac
}*";
}
units "none";
default "aaa";
}
typedef tdef2 {
type string {
length "2..17 | 20..50";
pattern "[ab]*";
}
}
container cont1 {
uses group1 {
if-feature "feat2";
refine "leaf1" {
if-feature "feat3";
must "24 - 4 = number('20')";
default "25";
config true;
mandatory false;
description "dsc";
reference "none";
}
}
leaf leaf4 {
type int64 {
range "1000 .. 50000" {
error-message
"Special e
}
.";
}
}
}
}
}
}
}
|