Newer
Older
/* Copyright 2021 ETSI
Licensed under the BSD-3 Clause (https://forge.etsi.org/legal-matters) */
module etsi-qkd-sdn-inventory {
yang-version "1.1";
namespace "urn:etsi:qkd:yang:etsi-qkd-sdn-inventory"; //TBD. Replaced when assigned.
prefix "qkdnw-invt";
import ietf-inet-types { prefix "inet"; }
import etsi-qkd-sdn-node { prefix "etsi-qkdn"; }
import etsi-qkd-node-types { prefix "etsi-qkdn-types"; }
import etsi-qkd-sdn-topology { prefix "qkdnw-tplg"; }
organization "ETSI ISG QKD";
contact
"https://www.etsi.org/committee/qkd
djcha@sk.com";
description
"This module contains the groupings and containers composing the software-defined QKD network
inventory information models specified in ETSI GS QKD 018 V0.0.8";
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
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
revision 2021-09-20 {
description "The YANG module for QKD network inventory";
}
identity PATH-RESTORATION-TYPE {
description "Base identity from which path restoration types are derived.";
}
identity AUTOMATIC {
base PATH-RESTORATION-TYPE;
description "The path restoration starts automatically.";
}
identity MANUAL {
base PATH-RESTORATION-TYPE;
description "The path restoration starts manually.";
}
typedef path-restoration-type {
type identityref {
base PATH-RESTORATION-TYPE;
}
description "This type represents path restoration types of QKD service link.";
}
grouping qkdn_id_ref {
leaf qkdn_id_ref {
type leafref {
path "/qkdnw-tplg:qkd_network/qkdnw-tplg:sdqkd_nodes/qkdnw-tplg:qkdn/qkdnw-tplg:qkdn_id";
}
description "Used to reference a SD-QKD node.";
}
}
grouping qkdi_id_ref {
leaf qkdi_id_ref {
type leafref {
path "/qkdnw-tplg:qkd_network/qkdnw-tplg:sdqkd_nodes/qkdnw-tplg:qkdn[qkdnw-tplg:qkdn_id=current()/../qkdn_id_ref]"+
"/qkdnw-tplg:qkd_interfaces/qkdnw-tplg:qkdi/qkdnw-tplg:qkdi_id";
}
description "Used to reference an interface of the SD-QKD node. Interfaces are identified to the SD-QKD node that contains them.";
}
}
grouping phys_link_id_ref {
leaf phys_link_id_ref {
type leafref {
path "/qkdnw-tplg:qkd_network/qkdnw-tplg:qkd_links/qkdnw-tplg:qkd_phys_links/qkdnw-tplg:phys_link/qkdnw-tplg:phys_link_id";
}
}
description "Used to reference a QKD physical link.";
}
grouping svc_link_id_ref {
leaf svc_link_id_ref {
type leafref {
path "/qkdnw-tplg:qkd_network/qkdnw-tplg:qkd_links/qkdnw-tplg:qkd_svc_links/qkdnw-tplg:svc_link/qkdnw-tplg:svc_link_id";
}
}
description "Used to reference a QKD service link.";
}
grouping phys_link_key_rate_perf {
leaf expected_consumption {
type uint32;
units "bps";
description "Sum of all the applications’ bandwidths (in bits per second) that are on this particular QKD physical link.";
}
leaf skr {
type uint32;
units "bps";
description "Secret key generation rate (in bits per second) of each QKD physical link.";
}
leaf eskr {
type uint32;
units "bps";
description "Effective secret key generation rate (in bits per second) of each QKD physical link available after all the applications’ consumption.";
}
}
grouping svc_link_key_rate_perf {
leaf expected_consumption {
type uint32;
units "bps";
description "The bandwidth (in bits per second) of the external application that is consuming keys from QKD service link.";
}
leaf skr {
type uint32;
units "bps";
description "Secret key generation rate (in bits per second) of QKD service link.";
}
leaf eskr {
type uint32;
units "bps";
description "Effective secret key generation rate (in bits per second) of QKD service link after the external application’s consumption.";
}
}
grouping phys_link_perf {
list phys_link_perf {
config false;
key "type";
leaf type {
type etsi-qkdn-types:phys-perf-types;
description "Type of the physical performance value to be exposed to the controller.";
}
leaf value {
type uint32;
description "Numerical value for the performance parameter.";
}
}
}
grouping qkdn_details {
uses etsi-qkdn:qkdn_version;
uses etsi-qkdn:qkdn_capabilities;
uses etsi-qkdn:qkdn_location_id {
refine qkdn_location_id {
default None;
description "The location of the secure area that contains the SD-QKD node to be specified.";
}
}
container KME_ip_port {
description "The ip address and port number of the key management entity in SD-QKD node which provides QKD keys to external application.";
leaf KME_ip {
type inet:ip-address;
}
leaf KME_port {
type inet:port-number;
}
}
}
grouping qkdi_details {
leaf role_support {
type etsi-qkdn-types:qkd-role-types;
description "Support for transmit, receive or both.";
}
uses etsi-qkdn:qkdi_model;
uses etsi-qkdn:qkdi_type;
uses etsi-qkdn:att_point;
}
grouping phys_link_details {
leaf enable {
type boolean;
default true;
description "This value allows the key generation process for a given link to be enabled or disabled.
If true, the key generation process is enabled.";
}
leaf wavelength {
type etsi-qkdn-types:wavelength;
units "nm";
description "Wavelength (nm) to be used for the quantum channel.
If the interface is not tunable, this parameter can by bypassed.";
}
container performance {
uses phys_link_key_rate_perf;
uses phys_link_perf {
when "/qkdnw-tplg:qkd_network/qkdnw-tplg:qkd_links/qkdnw-tplg:qkd_phys_links/qkdnw-tplg:phys_link/qkdnw-tplg:link_type = 'PHYS'";
description "Performance of the specific physical link.";
}
}
}
grouping phys_link_status {
leaf phys_link_status {
config false;
type etsi-qkdn-types:link-status-types;
description "Status of the QKD physical link.";
}
}
grouping svc_link_details {
leaf bandwidth {
type uint32;
units "bps";
description "Required bandwidth (bps) for the key association link. Used to reserve bandwidth
from the physical link to support the service link as an internal application.";
}
container performance {
uses svc_link_key_rate_perf;
}
container path_restoration {
description "Container for path restoration conditions when any failure happens in the end-to-end key relay path.";
leaf type {
type path-restoration-type;
description "path restoration type of QKD service link.";
}
leaf hold_off_time {
type uint32;
units "milliseconds";
description "Time to wait before attempting restoration.";
}
}
}
grouping svc_link_status {
leaf svc_link_status {
config false;
type etsi-qkdn-types:link-status-types;
description "Status of the QKD service link.";
}
}
augment "/qkdnw-tplg:qkd_network/qkdnw-tplg:sdqkd_nodes/qkdnw-tplg:qkdn" {
description "The inventory of a SD-QKD node.";
uses qkdn_details;
uses etsi-qkdn:qkdn_status;
}
augment "/qkdnw-tplg:qkd_network/qkdnw-tplg:sdqkd_nodes/qkdnw-tplg:qkdn/qkdnw-tplg:qkd_interfaces/qkdnw-tplg:qkdi" {
description "The inventory of an interface (QKD module) of the SD-QKD node.";
uses qkdi_details;
uses etsi-qkdn:qkdi_status;
}
augment "/qkdnw-tplg:qkd_network/qkdnw-tplg:qkd_links/qkdnw-tplg:qkd_phys_links/qkdnw-tplg:phys_link" {
description "The inventory of a QKD physical link.";
uses phys_link_details;
uses phys_link_status;
}
augment "/qkdnw-tplg:qkd_network/qkdnw-tplg:qkd_links/qkdnw-tplg:qkd_svc_links/qkdnw-tplg:svc_link" {
description "The inventory of a QKD service link.";
uses svc_link_details;
uses svc_link_status;
}
notification sdqkdn_new {
container qkdn {
uses qkdn_id_ref;
uses qkdn_details;
leaf qkdn_status {
type etsi-qkdn-types:qkdn-status-types;
}
leaf reason {
type string;
description "This notification includes the information about the new SD-QKD node installed in the QKD network.";
}
}
}
notification sdqkdn_interface_new {
container qkd_interface {
uses qkdn_id_ref;
uses qkdi_id_ref;
uses etsi-qkdn:qkdi_status;
leaf reason {
type string;
description "This notification includes the information about the new interface of SD-QKD node installed in the QKD network.";
}
}
}
notification sdqkdn_phys_link_new {
container qkd_phys_link {
uses phys_link_id_ref;
uses phys_link_status;
container phys_link_local_qkdn {
uses qkdn_id_ref;
uses qkdi_id_ref;
}
container phys_link_remote_qkdn {
uses qkdn_id_ref;
uses qkdi_id_ref;
}
leaf reason {
type string;
description "This notification includes the information about the new QKD physical link installed in the QKD network.";
}
}
}
notification sdqkdn_svc_link_new {
container qkd_svc_link {
uses svc_link_id_ref;
uses svc_link_status;
container svc_link_local_qkdn {
uses qkdn_id_ref;
uses qkdi_id_ref;
}
container svc_link_remote_qkdn {
uses qkdn_id_ref;
uses qkdi_id_ref;
}
leaf reason {
type string;
description "This notification includes the information about the new QKD service link deployed in the QKD network.";
}
}
}
notification sqdkdn_phys_link_perf_update {
container qkd_phys_link {
uses phys_link_id_ref;
uses phys_link_key_rate_perf;
uses phys_link_perf;
}
}
notification sqdkdn_svc_link_perf_update {
container qkd_svc_link {
uses svc_link_id_ref;
uses svc_link_key_rate_perf;
}
}
notification sqdkdn_phys_link_overloaded {
container qkd_phys_link {
uses phys_link_id_ref;
uses phys_link_key_rate_perf;
}
}
notification sqdkdn_svc_link_overloaded {
container qkd_svc_link {
uses svc_link_id_ref;
uses svc_link_key_rate_perf;
}
}
notification alarm {
container qkdn {
uses qkdn_id_ref;
leaf qkdn_status {
type etsi-qkdn-types:qkdn-status-types;
description "Status of a SD-QKD node.";
}
leaf message {
type string;
description "Message of an alarm.";
}
leaf severity {
type etsi-qkdn-types:severity-types;
description "Severity of an alarm.";
}
}
container interface {
uses qkdn_id_ref;
uses qkdi_id_ref;
leaf status {
type etsi-qkdn-types:iface-status-types;
description "Status of a QKD interface of the SD-QKD node.";
}
leaf message {
type string;
description "Message of an alarm.";
}
leaf severity {
type etsi-qkdn-types:severity-types;
description "Severity of an alarm.";
}
}
container phys_link {
uses phys_link_id_ref;
leaf status {
type etsi-qkdn-types:link-status-types;
description "Status of a QKD physical link.";
}
leaf message {
type string;
description "Message of an alarm.";
}
leaf severity {
type etsi-qkdn-types:severity-types;
description "Severity of an alarm.";
}
}
container svc_link {
uses svc_link_id_ref;
leaf status {
type etsi-qkdn-types:link-status-types;
description "Status of a QKD service link.";
}
leaf message {
type string;
description "Message of an alarm.";
}
leaf severity {
type etsi-qkdn-types:severity-types;
description "Severity of an alarm.";
}
}
}
notification event {
container qkdn {
uses qkdn_id_ref;
leaf qkdn_status {
type etsi-qkdn-types:qkdn-status-types;
description "Status of a SD-QKD node.";
}
leaf message {
type string;
description "Message of an alarm.";
}
leaf severity {
type etsi-qkdn-types:severity-types;
description "Severity of an alarm.";
}
}
container interface {
uses qkdn_id_ref;
uses qkdi_id_ref;
leaf status {
type etsi-qkdn-types:iface-status-types;
description "Status of a QKD interface of the SD-QKD node.";
}
leaf message {
type string;
description "Message of an alarm.";
}
leaf severity {
type etsi-qkdn-types:severity-types;
description "Severity of an alarm.";
}
}
container phys_link {
uses phys_link_id_ref;
leaf status {
type etsi-qkdn-types:link-status-types;
description "Status of a QKD physical link.";
}
leaf message {
type string;
description "Message of an alarm.";
}
leaf severity {
type etsi-qkdn-types:severity-types;
description "Severity of an alarm.";
}
}
container svc_link {
uses svc_link_id_ref;
leaf status {
type etsi-qkdn-types:link-status-types;
description "Status of a QKD service link.";
}
leaf message {
type string;
description "Message of an alarm.";
}
leaf severity {
type etsi-qkdn-types:severity-types;
description "Severity of an alarm.";
}
}
}
}