blob: efbac4dae4141584e8cbad6393563d6cccddc4eb (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
module basic-module {
namespace "basic:module";
prefix "basmod";
import referenced-module {prefix refmo; revision-date 2013-12-02;}
revision 2013-12-02 {
}
container cont {
container cont1 {
leaf lf11 {
type identityref {
base "refmo:iden";
}
}
}
leaf lfStr {
type string;
}
leaf lfInt8 {
type int8;
}
leaf lfInt16 {
type int16;
}
leaf lfInt32 {
type int32;
}
leaf lfInt64 {
type int64;
}
leaf lfUint8 {
type uint8;
}
leaf lfUint16 {
type uint16;
}
leaf lfUint32 {
type uint32;
}
leaf lfUint64 {
type uint64;
}
leaf lfBinary {
type binary;
}
leaf lfBits {
type bits {
bit one;
bit two;
bit three;
}
}
leaf lfEnumeration {
type enumeration {
enum enum1;
enum enum2;
enum enum3;
}
}
leaf lfEmpty {
type empty;
}
leaf lfBoolean {
type boolean;
}
leaf lfUnion {
type union {
type int8;
type string;
type bits {
bit first;
bit second;
}
type boolean;
}
}
leaf lfLfref {
type leafref {
path "/cont/lfBoolean";
}
}
leaf lfLfrefNegative {
type leafref {
path "/cont/not-existing";
}
}
leaf lfInIdentifier {
type instance-identifier;
}
}
}
|