-
Notifications
You must be signed in to change notification settings - Fork 2
/
ietf-otn-slice.yang
executable file
·335 lines (289 loc) · 9.96 KB
/
ietf-otn-slice.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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
module ietf-otn-slice {
yang-version 1.1;
namespace
"urn:ietf:params:xml:ns:yang:ietf-otn-slice";
prefix "otns";
import ietf-network {
prefix "nw";
reference
"RFC 8345: A YANG Data Model for Network Topologies";
}
import ietf-network-topology {
prefix "nt";
reference
"RFC 8345: A YANG Data Model for Network Topologies";
}
import ietf-layer1-types {
prefix "l1-types";
reference
"draft-ietf-ccamp-layer1-types-14:
A YANG Data Model for Layer 1 Types";
}
import ietf-network-slice-service {
prefix "ietf-nss";
reference
"draft-ietf-teas-ietf-network-slice-nbi-yang-05:
IETF Network Slice Service YANG Model";
}
import ietf-ns-topo {
prefix "ns-topo";
reference
"draft-liu-teas-transport-network-slice-yang-06:
IETF Network Slice YANG Model";
}
organization
"IETF CCAMP Working Group";
contact
"WG Web: <http://tools.ietf.org/wg/ccamp/>
WG List: <mailto:ccamp@ietf.org>
Editor: Haomian Zheng
<mailto:zhenghaomian@huawei.com>
Editor: Italo Busi
<mailto:italo.busi@huawei.com>
Editor: Aihua Guo
<mailto:aihuaguo.ietf@gmail.com>
Editor: Sergio Belotti
<mailto:sergio.belotti@nokia.com>";
description
"This module defines a YANG data model for configuring
technology-specific network slices in optical transport
networks, e.g., Optical Transport Network (OTN).
The model fully conforms to the Network Management Datastore
Architecture (NMDA).
Copyright (c) 2022 IETF Trust and the persons identified as
authors of the code. All rights reserved.
Redistribution and use in source and binary forms, with or
without modification, is permitted pursuant to, and subject
to the license terms contained in, the Revised BSD License
set forth in Section 4.c of the IETF Trust's Legal Provisions
Relating to IETF Documents
(https://trustee.ietf.org/license-info).
This version of this YANG module is part of RFC XXXX; see the
RFC itself for full legal notices.";
revision "2023-07-06" {
description
"Latest revision of NBI YANG model for OTN slicing.";
reference
"draft-ietf-ccamp-yang-otn-slicing-05: Framework and Data
Model for OTN Network Slicing";
}
/*
* Identities
*/
identity bit-error-rate {
base ietf-nss:service-slo-metric-type;
description
"ODU bit error rate";
}
identity odu-tca-threshold-type {
description
"Base identity for ODU performance counter";
}
identity odu-bbe {
base odu-tca-threshold-type;
description
"ODU Background Block Error (BBE) threshold";
}
identity odu-es {
base odu-tca-threshold-type;
description
"ODU Errored Seconds (ES) threshold";
}
identity odu-ses {
base odu-tca-threshold-type;
description
"ODU Severely Errored Seconds (SES) threshold";
}
identity odu-uas {
base odu-tca-threshold-type;
description
"ODU Unavailable Seconds (UAS) threshold";
}
identity odu-ber {
base odu-tca-threshold-type;
description
"ODU Bit Error Rate (BER) threshold";
}
identity pm-duration {
description
"Base identity for ODU performance monitoring interval";
}
identity pm-15m {
base pm-duration;
description
"15 minuites pm duration";
}
identity pm-24h {
base pm-duration;
description
"24 hours pm duration";
}
/*
* Groupings
*/
grouping odu-signal-quality {
description
"Grouping for ODU signal quality.";
container odu-signal-quality {
description
"Contianer for ODU signal quality attributes.";
list odu-pm-objective {
key "duration pm-type";
description
"List of ODU performance requirements.";
leaf duration {
type identityref {
base pm-duration;
}
description
"Time duration.";
}
leaf pm-type {
type identityref {
base odu-tca-threshold-type;
}
description
"ODU PM metric type.";
}
leaf pm-threshold {
type uint64;
description
"ODU PM metric threshold.";
}
}
}
}
grouping otn-slice-slo-policy {
description
"Policy grouping for OTN network slices.";
container otn {
description
"OTN technology-specific SLO/SLE policy container";
uses odu-signal-quality;
uses l1-types:otn-link-bandwidth;
}
}
/*
* Augmented data nodes
*/
/* slice template */
augment "/ietf-nss:network-slice-services" +
"/ietf-nss:slo-sle-templates" +
"/ietf-nss:slo-sle-template" +
"/ietf-nss:slo-policy" {
description
"Augment IETF network slice service templates with
OTN technology-specific SLO/SLE policy attributes.";
uses otn-slice-slo-policy;
}
/* slice augments */
augment "/ietf-nss:network-slice-services" +
"/ietf-nss:slice-service" +
"/ietf-nss:slo-sle-policy" +
"/ietf-nss:custom" +
"/ietf-nss:service-slo-sle-policy" +
"/ietf-nss:slo-policy" {
description
"Augment IETF network slice services to include technology-
specific SLO/SLE policy for connectivity-based OTN
slices.";
uses otn-slice-slo-policy;
}
/* network topology augments */
augment "/nw:networks/nw:network" +
"/ns-topo:slo-sle-policy" +
"/ns-topo:custom" +
"/ns-topo:service-slo-sle-policy" +
"/ns-topo:slo-policy" {
when "../../nw:network-types/ns-topo:network-slice" {
description "Augment only for Network Slice topology.";
}
description "Augment topology configuration and state.";
uses otn-slice-slo-policy;
}
/* network node augments */
augment "/nw:networks/nw:network/nw:node" +
"/ns-topo:slo-sle-policy" +
"/ns-topo:custom" +
"/ns-topo:service-slo-sle-policy" +
"/ns-topo:slo-policy" {
when "../../../nw:network-types/ns-topo:network-slice" {
description "Augment only for Network Slice topology.";
}
description "Augment node configuration and state.";
uses otn-slice-slo-policy;
}
/* network node's termination point augments */
augment "/nw:networks/nw:network/nw:node" +
"/nt:termination-point" +
"/ns-topo:slo-sle-policy" +
"/ns-topo:custom" +
"/ns-topo:service-slo-sle-policy" +
"/ns-topo:slo-policy" {
when "../../../../nw:network-types/ns-topo:network-slice" {
description "Augment only for Network Slice topology.";
}
description "Augment node configuration and state.";
uses otn-slice-slo-policy;
}
/* network link augments */
augment "/nw:networks/nw:network/nt:link" +
"/ns-topo:slo-sle-policy" +
"/ns-topo:custom" +
"/ns-topo:service-slo-sle-policy" +
"/ns-topo:slo-policy" {
when "../../../nw:network-types/ns-topo:network-slice" {
description "Augment only for Network Slice topology.";
}
description "Augment link configuration and state.";
uses otn-slice-slo-policy;
}
/* connectivity construct augments */
augment "/ietf-nss:network-slice-services" +
"/ietf-nss:slice-service" +
"/ietf-nss:connection-groups" +
"/ietf-nss:connection-group" +
"/ietf-nss:slo-sle-policy" +
"/ietf-nss:custom" +
"/ietf-nss:service-slo-sle-policy" +
"/ietf-nss:slo-policy" {
description
"Augment IETF network slice services to include technology-
specific SLO/SLE policy for connection groups within
a connectivity-based transport network slice.";
uses otn-slice-slo-policy;
}
augment "/ietf-nss:network-slice-services" +
"/ietf-nss:slice-service" +
"/ietf-nss:connection-groups" +
"/ietf-nss:connection-group" +
"/ietf-nss:connectivity-construct" +
"/ietf-nss:slo-sle-policy" +
"/ietf-nss:custom" +
"/ietf-nss:service-slo-sle-policy" +
"/ietf-nss:slo-policy" {
description
"Augment IETF network slice services to include technology-
specific SLO/SLE policy for connectivity-constructs within
a connectivity-based transport network slice.";
uses otn-slice-slo-policy;
}
augment "/ietf-nss:network-slice-services" +
"/ietf-nss:slice-service" +
"/ietf-nss:connection-groups" +
"/ietf-nss:connection-group" +
"/ietf-nss:connectivity-construct" +
"/ietf-nss:type" +
"/ietf-nss:a2a" +
"/ietf-nss:a2a-sdp" +
"/ietf-nss:slo-sle-policy" +
"/ietf-nss:custom" +
"/ietf-nss:service-slo-sle-policy" +
"/ietf-nss:slo-policy" {
description
"Augment IETF network slice services to include technology-
specific SLO/SLE policy for a2a connectivity-constructs
within a connectivity-based transport network slice.";
uses otn-slice-slo-policy;
}
}