-
Notifications
You must be signed in to change notification settings - Fork 0
/
ttt.yang
122 lines (91 loc) · 1.43 KB
/
ttt.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
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
112
113
114
115
116
117
118
119
120
121
122
module ttt {
namespace "urn:ttt";
prefix ttt;
import ietf-interfaces {
prefix if;
}
leaf topleaf {
type string;
}
leaf topleaf2 {
type string;
}
leaf topempty {
type empty;
}
container test {
list iface {
key "name";
leaf name {
type string;
}
leaf comment {
type string;
}
leaf-list multi {
type string;
}
leaf type {
type enumeration {
enum ethernet;
enum ppp;
enum dummy;
}
}
leaf empty {
type empty;
}
}
}
list acl {
ordered-by user;
key "name";
leaf name {
type string;
}
leaf iflink {
type leafref {
path "../../test/iface/name";
}
}
leaf absiflink {
type leafref {
path "/if:interfaces/if:interface/if:name";
}
}
leaf comment {
type string;
}
leaf-list multi {
ordered-by user;
type leafref {
path "../../test/iface/name";
}
}
}
list ref {
ordered-by user;
key "name";
leaf name {
type leafref {
path "../../test/iface/name";
}
}
}
list rule {
key "from to";
leaf from {
type string;
}
leaf to {
type string;
}
leaf comment {
type string;
}
leaf-list multi {
ordered-by user;
type string;
}
}
}