SelfResolutionGroupingWithMultipleUses.yang
1.41 KB
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
module Test {
yang-version 1;
namespace http://huawei.com;
prefix Ant;
container valid {
grouping endpoint {
leaf zip-code {
type string;
}
uses first;
container design {
uses second;
container correct {
leaf newone {
type string;
}
uses third;
}
}
uses fourth;
uses fifth;
}
uses endpoint;
grouping first {
list valid {
key invalid-interval;
reference "RFC 6020";
leaf invalid-interval {
type "uint16";
units "seconds";
status current;
reference "RFC 6020";
}
}
}
grouping second {
leaf ink {
type int32;
}
}
grouping third {
container value {
leaf zip-code {
type string;
}
}
}
grouping fourth {
typedef my-type {
status deprecated;
type int32;
}
leaf correct {
type my-type;
}
}
grouping fifth {
leaf abc {
type string;
}
}
}
}