forked from tsaad-dev/te
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ietf-mpls-te-types.yang
215 lines (191 loc) · 5.1 KB
/
ietf-mpls-te-types.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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
module ietf-mpls-te-types {
namespace "urn:cisco:params:xml:ns:yang:ietf-mpls-te-types";
/* Replace with IANA when assigned */
prefix "mtt";
import ietf-inet-types { prefix inet; }
organization
"IETF MPLS Working Group";
contact
"Rakesh Gandhi [email protected]
Tarek Saad [email protected]
Robert Sawaya [email protected]";
description
"This module contains a collection of generally
useful MPLS-TE specific
YANG data type defintions.";
revision 2014-11-06 {
description
"Initial revision.";
}
/* Typedefs for MPLS-TE */
typedef bc-model-type {
description
"Diff-Serve TE Bandwidth Constraint model type.";
type enumeration {
enum rdm {
description
"Russian Doll bandwidth constraint
model type.";
}
enum mam {
description
"Maximum Allocation bandwidth constraint
model type.";
}
enum mar {
description
"Maximum Allocation with Reservation
bandwidth constraint model type.";
}
}
default rdm;
}
typedef bandwidth-type {
description "MPLS-TE tunnel bandwidth type";
type enumeration {
enum CT0;
enum CT1;
enum CT2;
enum CT3;
enum CT4;
enum CT5;
enum CT6;
enum CT7;
}
default CT0;
}
typedef lsp-status-event-type {
description "Tunnel LSP status event type.";
type enumeration {
enum bandwidth-change;
enum insufficient-bandwidth;
enum record-route;
enum reroute;
enum state;
enum switchover;
}
}
typedef bandwidth-unit-type {
description "Bandwidth unit type.";
type enumeration {
enum Gbps;
enum Mbps;
enum Kbps;
}
default Kbps;
}
typedef backup-bandwidth-type {
description "FRR backup tunnel bandwidth protection type.";
type enumeration {
enum BC0;
enum BC1;
enum BC2;
enum BC3;
enum BC4;
enum BC5;
enum BC6;
enum BC7;
enum BC-any;
}
default BC-any;
}
typedef tunnel-type {
type enumeration {
enum p2p {
description
"MPLS-TE point-to-point tunnel type.";
}
enum p2mp {
description
"MPLS-TE point-to-multipoint tunnel type.";
}
}
default p2p;
description
"Possible MPLS-TE tunnel types, default is point-to-point.";
}
typedef hop-address-type {
type inet:ip-address;
}
typedef hop-action-type {
type enumeration {
enum include-strict {
description "Include strict hop.";
}
enum include-loose {
description "Include loose hop.";
}
enum exclude {
description "Exclude strict hop.";
}
}
default "include-strict";
}
typedef bfd-type {
type enumeration {
enum classical {
description "BFD classical session type.";
}
enum seamless {
description "BFD seamless session type.";
}
}
default "classical";
}
typedef path-metric-type {
type enumeration {
enum igp;
enum te;
}
default igp;
description "Path metric for CSPF.";
}
typedef path-tiebreaker-type {
type enumeration {
enum min-fill;
enum max-fill;
enum random;
}
default min-fill;
description
"Possible CSPF path tiebreakers for MPLS-TE tunnels.";
}
typedef bidir-association-type {
type enumeration {
enum corouted;
enum non-corouted;
}
default non-corouted;
description
"Possible types of bidirectional tunnel association.";
}
typedef bfd-encap-mode-type {
type enumeration {
enum gal;
enum ip;
}
default ip;
description
"Possible BFD transport modes when running over MPLS-TE
LSPs.";
}
typedef affinity-action-type {
type enumeration {
enum include;
enum exclude;
enum include-strict;
enum exclude-all;
}
description
"Possible handling for affinity.";
}
typedef path-computation-srlg-type {
description "Path computation SRLG criteria.";
type enumeration {
enum srlg-none;
enum srlg-strict;
enum srlg-preferred;
enum srlg-weighted;
}
}
}