blob: 81d3f0a0b0fe6c0a897d3e6b8578f46a96da2983 (
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
|
module identity-test {
yang-version 1.1;
namespace "identity:ns:test:json:ser";
prefix "id";
import identity-types {
prefix "type";
}
import identity-types-second {
prefix "sec";
}
revision "2013-07-15";
identity optical {
base type:int-type;
}
identity Giga {
base type:physical;
}
typedef available {
type identityref {
base "type:physical";
}
}
typedef typed{
type union {
type int32;
type int8;
type identityref {
base type:int-type;
}
}
}
container test {
leaf l {
type string;
}
container con1 {
leaf interface {
type identityref {
base "type:int-type";
}
}
container interfaces {
list int-list {
key "iden";
leaf iden {
type "id:typed";
}
container available {
leaf-list ll {
type available;
}
leaf leaf1 {
type leafref {
path "../../iden";
}
}
leaf leaf2 {
type identityref {
base type:int-type;
base sec:iden1;
}
}
}
}
}
}
}
}
|