-
Notifications
You must be signed in to change notification settings - Fork 3
/
ietf-layer0-types.yang
executable file
·2241 lines (2037 loc) · 64.4 KB
/
ietf-layer0-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
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
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
module ietf-layer0-types {
yang-version 1.1;
namespace "urn:ietf:params:xml:ns:yang:ietf-layer0-types";
prefix l0-types;
import ietf-te-types {
prefix te-types;
reference
"RFC YYYY: Common YANG Data Types for Traffic Engineering";
}
// RFC Editor: replace YYYY with actual RFC number assigned to
// [I-D.ietf-teas-rfc8776-update] and remove this note
organization
"IETF CCAMP Working Group";
contact
"WG Web: <https://datatracker.ietf.org/wg/ccamp/>
WG List: <mailto:[email protected]>
Editor: Dieter Beller
<mailto:[email protected]>
Editor: Sergio Belotti
<mailto:[email protected]>
Editor: Italo Busi
<mailto:[email protected]>
Editor: Haomian Zheng
<mailto:[email protected]>";
description
"This module defines Optical Layer 0 types. This module
provides groupings that can be applicable to Layer 0
Fixed Optical Networks (e.g., CWDM (Coarse Wavelength
Division Multiplexing) and DWDM (Dense Wavelength Division
Multiplexing)) and flexi-grid optical networks.
Copyright (c) 2024 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.
The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL', 'SHALL
NOT', 'SHOULD', 'SHOULD NOT', 'RECOMMENDED', 'NOT RECOMMENDED',
'MAY', and 'OPTIONAL' in this document are to be interpreted as
described in BCP 14 (RFC 2119) (RFC 8174) when, and only when,
they appear in all capitals, as shown here.";
// RFC Ed.: replace XXXX with actual RFC number and remove
// this note
// replace the revision date with the module publication date
// the format is (year-month-day)
revision 2024-11-27 {
description
"To be updated";
reference
"RFC XXXX: A YANG Data Model for Layer 0 Types";
}
revision 2021-08-13 {
description
"Initial version";
reference
"RFC 9093: A YANG Data Model for Layer 0 Types";
}
/*
* Identities
*/
identity l0-grid-type {
description
"Layer 0 grid type";
reference
"RFC 6205: Generalized Labels for Lambda-Switch-Capable
(LSC), Label Switching Routers,
ITU-T G.694.2 (12/2003): Spectral grids for WDM applications:
CWDM wavelength grid";
}
identity wson-grid-cwdm {
base l0-grid-type;
description
"CWDM grid";
reference
"RFC 6205: Generalized Labels for Lambda-Switch-Capable (LSC)
Label Switching Routers,
ITU-T G.694.2 (12/2003): Spectral grids for WDM applications:
CWDM wavelength grid";
}
identity wson-grid-dwdm {
base l0-grid-type;
description
"DWDM grid";
reference
"RFC 6205: Generalized Labels for Lambda-Switch-Capable
(LSC), Label Switching Routers,
ITU-T G.694.1 (10/2020): Spectral grids for WDM applications:
DWDM frequency grid";
}
identity flexi-grid-dwdm {
base l0-grid-type;
description
"Flexi-grid";
reference
"RFC 7699: Generalized Labels for the Flexi-Grid in Lambda
Switch Capable (LSC) Label Switching Routers,
ITU-T G.694.1 (10/2020): Spectral grids for WDM applications:
DWDM frequency grid";
}
identity cwdm-ch-spc-type {
description
"CWDM channel-spacing type";
reference
"RFC 6205: Generalized Labels for Lambda-Switch-Capable (LSC)
Label Switching Routers,
ITU-T G.694.2 (12/2003): Spectral grids for WDM applications:
CWDM wavelength grid";
}
identity cwdm-20nm {
base cwdm-ch-spc-type;
description
"20nm channel spacing";
reference
"RFC 6205: Generalized Labels for Lambda-Switch-Capable (LSC)
Label Switching Routers,
ITU-T G.694.2 (12/2003): Spectral grids for WDM applications:
CWDM wavelength grid";
}
identity dwdm-ch-spc-type {
description
"DWDM channel-spacing type";
reference
"RFC 6205: Generalized Labels for Lambda-Switch-Capable (LSC)
Label Switching Routers,
ITU-T G.694.1 (10/2020): Spectral grids for WDM applications:
DWDM frequency grid";
}
identity dwdm-100ghz {
base dwdm-ch-spc-type;
description
"100 GHz channel spacing";
reference
"RFC 6205: Generalized Labels for Lambda-Switch-Capable (LSC)
Label Switching Routers,
ITU-T G.694.1 (10/2020): Spectral grids for WDM applications:
DWDM frequency grid";
}
identity dwdm-50ghz {
base dwdm-ch-spc-type;
description
"50 GHz channel spacing";
reference
"RFC 6205: Generalized Labels for Lambda-Switch-Capable (LSC)
Label Switching Routers,
ITU-T G.694.1 (10/2020): Spectral grids for WDM applications:
DWDM frequency grid";
}
identity dwdm-25ghz {
base dwdm-ch-spc-type;
description
"25 GHz channel spacing";
reference
"RFC 6205: Generalized Labels for Lambda-Switch-Capable (LSC)
Label Switching Routers,
ITU-T G.694.1 (10/2020): Spectral grids for WDM applications:
DWDM frequency grid";
}
identity dwdm-12p5ghz {
base dwdm-ch-spc-type;
description
"12.5 GHz channel spacing";
reference
"RFC 6205: Generalized Labels for Lambda-Switch-Capable (LSC)
Label Switching Routers,
ITU-T G.694.1 (10/2020): Spectral grids for WDM applications:
DWDM frequency grid";
}
identity flexi-ch-spc-type {
status deprecated;
description
"Flexi-grid channel-spacing type";
}
identity flexi-ch-spc-6p25ghz {
base flexi-ch-spc-type;
status deprecated;
description
"6.25 GHz channel spacing";
}
identity flexi-ncfg-type {
description
"Flexi-grid Nominal Central Frequency Granularity (NCFG)
type";
reference
"RFC 7699: Generalized Labels for the Flexi-Grid in Lambda
Switch Capable (LSC) Label Switching Routers,
ITU-T G.694.1 (10/2020): Spectral grids for WDM applications:
DWDM frequency grid";
}
identity flexi-ncfg-6p25ghz {
base flexi-ncfg-type;
description
"6.25 GHz Nominal Central Frequency Granularity (NCFG)";
reference
"RFC 7699: Generalized Labels for the Flexi-Grid in Lambda
Switch Capable (LSC) Label Switching Routers,
ITU-T G.694.1 (10/2020): Spectral grids for WDM applications:
DWDM frequency grid";
}
identity flexi-slot-width-granularity {
description
"Flexi-grid slot width granularity";
reference
"RFC 7699: Generalized Labels for the Flexi-Grid in Lambda
Switch Capable (LSC) Label Switching Routers,
ITU-T G.694.1 (10/2020): Spectral grids for WDM applications:
DWDM frequency grid";
}
identity flexi-swg-12p5ghz {
base flexi-slot-width-granularity;
description
"12.5 GHz slot width granularity";
reference
"RFC 7699: Generalized Labels for the Flexi-Grid in Lambda
Switch Capable (LSC) Label Switching Routers,
ITU-T G.694.1 (10/2020): Spectral grids for WDM applications:
DWDM frequency grid";
}
identity modulation {
description "base identity for modulation type";
}
identity DPSK {
base modulation;
description
"DPSK (Differential Phase Shift Keying) modulation";
}
identity QPSK {
base modulation;
description
"QPSK (Quadrature Phase Shift Keying) modulation";
}
identity DP-QPSK {
base modulation;
description
"DP-QPSK (Dual Polarization Quadrature
Phase Shift Keying) modulation";
}
identity QAM8 {
base modulation;
description
"8QAM (8 symbols Quadrature Amplitude Modulation)";
}
identity DP-QAM8 {
base modulation;
description
"DP-QAM8 (8 symbols Dual Polarization Quadrature Amplitude
Modulation)";
}
identity QAM16 {
base modulation;
description
"QAM16 (16 symbols Quadrature Amplitude Modulation)";
}
identity DP-QAM16 {
base modulation;
description
"DP-QAM16 (16 symbols Dual Polarization Quadrature Amplitude
Modulation)";
}
identity QAM32 {
base modulation;
description
"QAM32 (32 symbols Quadrature Amplitude Modulation)";
}
identity DP-QAM32 {
base modulation;
description
"DP-QAM32 (32 symbols Dual Polarization Quadrature Amplitude
Modulation)";
}
identity QAM64 {
base modulation;
description
"QAM64 (64 symbols Quadrature Amplitude Modulation)";
}
identity DP-QAM64 {
base modulation;
description
"DP-QAM64 (64 symbols Dual Polarization Quadrature Amplitude
Modulation)";
}
identity fec-type {
description
"Base identity from which specific FEC
(Forward Error Correction) type identities are derived.";
}
identity g-fec {
base fec-type;
description
"Generic Forward Error Correction (G-FEC).";
reference
"ITU-T G.975 v2.0 (10/2000): Forward error correction for
submarine systems.";
}
identity super-fec {
base fec-type;
description
"Super Forward Error Correction (S-FEC).";
reference
"ITU-T G.975.1 v1.2 (07/2013): Forward error correction for
high bit-rate DWDM submarine systems.";
}
identity no-fec {
base fec-type;
description
"No FEC";
}
identity sc-fec {
base fec-type;
description
"Staircase Forward Error Correction (SC-FEC).";
reference
"Annex A of ITU-T G.709.2 v1.1 (09/2020):OTU4 long-reach
interface.";
}
identity o-fec {
base fec-type;
description
"Open Forward Error Correction (O-FEC) which reuses the
Bose, Chaudhuri and Hocquenghem (BCH) FEC.";
reference
"Clause 16.4.4 of ITU-T G.709.3 v2.1 (11/2022): Flexible OTN
long-reach interfaces;
Annex E of ITU-T G.709.3 v2.1 (11/2022): Flexible OTN
long-reach interfaces.";
}
identity c-fec {
base fec-type;
description
"Concatenated FEC (C-FEC) that combines an outer Staircase
Forward Error Correction (SC-FEC) code and an inner
double-extended SD-FEC (128,119) Hamming code.
More details are provided in clause 15/G.709.3 where it is
called DSH instead of concatenated FEC.";
reference
"Annex A of ITU-T G.709.2 v1.1 (09/2020):OTU4 long-reach
interface;
Annex D of ITU-T G.709.3 v2.1 (11/2022): Flexible OTN
long-reach interfaces;
Clause 15 of ITU-T G.709.3 v2.1 (11/2022): Flexible OTN
long-reach interfaces.";
}
identity line-coding {
description
"Base identity to defined the bit rate/line coding of optical
tributary signals.";
reference
"Section 7.1.2 of ITU-T G.698.2 v3.0 (11/2018).";
}
identity line-coding-NRZ-2p5G {
base line-coding;
description
"The non return to zero (NRZ) bit rate/line coding used by
the optical tributary signal class NRZ 2.5G";
reference
"Section 3.2.6 of ITU-T G.959.1 v8.0 (07/2018).";
}
identity line-coding-NRZ-OTU1 {
base line-coding;
description
"The non return to zero (NRZ) bit rate/line coding used by
the Optical channel Transport Unit order 1 (OTU1) optical
tributary signals";
reference
"Section 7.2.1.2 of ITU-T G.959.1 v8.0 (07/2018).";
}
identity line-coding-NRZ-10G {
description
"The non return to zero (NRZ) bit rate/line coding used by
the optical tributary signal class NRZ 10G";
reference
"Section 3.2.7 of ITU-T G.959.1 v8.0 (07/2018).";
}
identity line-coding-NRZ-OTU2 {
base line-coding;
description
"The non return to zero (NRZ) bit rate/line coding used by
the Optical channel Transport Unit order 2 (OTU2) optical
tributary signals";
reference
"Section 7.2.1.2 of ITU-T G.959.1 v8.0 (07/2018).";
}
identity line-coding-OTL4.4-SC {
base line-coding;
description
"The bit rate/line coding used by optical tributary
signals carrying a 100G Optical Transport Unit order 4
(OTU4) with Staircase Forward Error Correction (SC FEC)
from a group of four Optical Transport Lanes (OTL).";
reference
"Section 3.2.1 of ITU-T G.698.2 v3.0 (11/2018).";
}
identity line-coding-FOIC1.4-SC {
base line-coding;
description
"The bit rate/line coding used by optical tributary signals
carrying a FlexO Interface of order C1 with 4 lanes
(FOIC1.1) with Staircase Forward Error Correction
(SC FEC).";
reference
"Section 3.2.1 of ITU-T G.698.2 v3.0 (11/2018).";
}
identity wavelength-assignment {
description
"Wavelength selection base";
reference
"RFC 7689: Signaling Extensions for Wavelength Switched
Optical Networks";
}
identity first-fit-wavelength-assignment {
base wavelength-assignment;
description
"All the available wavelengths are numbered,
and this WA (Wavelength Assignment) method chooses
the available wavelength with the lowest index";
reference
"RFC 7689: Signaling Extensions for Wavelength Switched
Optical Networks";
}
identity random-wavelength-assignment {
base wavelength-assignment;
description
"This WA method chooses an available
wavelength randomly";
reference
"RFC 7689: Signaling Extensions for Wavelength Switched
Optical Networks";
}
identity least-loaded-wavelength-assignment {
base wavelength-assignment;
description
"This WA method selects the wavelength that
has the largest residual capacity on the most loaded
link along the route (in multi-fiber networks)";
reference
"RFC 7689: Signaling Extensions for Wavelength Switched
Optical Networks";
}
identity lower-first-wavelength-assignment {
base wavelength-assignment;
description
"Allocate wavelengths in ascending order, beginning from the
lowest frequency and progressing toward the highest frequency
within the permissible frequency range.";
}
identity upper-first-wavelength-assignment {
base wavelength-assignment;
description
"Allocate wavelengths in decending order, beginning from the
highest frequency and progressing toward the lowest frequency
within the permissible frequency range.";
}
identity type-power-mode {
description
"power equalization mode used within the
OMS and its elements";
}
identity power-spectral-density {
base type-power-mode;
description
"all elements must use power spectral density (W/Hz)";
}
identity carrier-power {
base type-power-mode;
description
"all elements must use power (dBm)";
}
identity switching-wson-lsc {
base te-types:switching-lsc;
description
"Wavelength Switched Optical Network Lambda-Switch Capable
(WSON-LSC).";
reference
"Section 3 of RFC 7688: GMPLS OSPF Enhancement for Signal and
Network Element Compatibility for Wavelength Switched Optical
Networks";
}
identity switching-flexi-grid-lsc {
base te-types:switching-lsc;
description
"Flexi-grid Lambda-Switch Capable (Flexi-Grid-LSC).";
reference
"Section 4.1 of RFC 8363: GMPLS OSPF-TE Extensions in Support
of Flexi-Grid Dense Wavelength Division Multiplexing (DWDM)
Networks";
}
/*
* Typedefs
*/
typedef dwdm-n {
type int16;
description
"The given value 'N' is used to determine the nominal central
frequency.
The nominal central frequency, 'f', is defined by:
f = 193100.000 GHz + N x channel spacing (measured in GHz),
where 193100.000 GHz (193.100000 THz) is the ITU-T 'anchor
frequency' for transmission over the DWDM grid, and where
'channel spacing' is defined by the dwdm-ch-spc-type.";
reference
"RFC6205: Generalized Labels for Lambda-Switch-Capable (LSC)
Label Switching Routers,
ITU-T G.694.1 (10/2020): Spectral grids for WDM applications:
DWDM frequency grid";
}
typedef cwdm-n {
type int16;
description
"The given value 'N' is used to determine the nominal central
wavelength.
The nominal central wavelength is defined by:
Wavelength = 1471 nm + N x channel spacing (measured in nm)
where 1471 nm is the conventional 'anchor wavelength' for
transmission over the CWDM grid, and where 'channel spacing'
is defined by the cwdm-ch-spc-type.";
reference
"RFC 6205: Generalized Labels for Lambda-Switch-Capable (LSC)
Label Switching Routers,
ITU-T G.694.2 (12/2003): Spectral grids for WDM applications:
CWDM wavelength grid";
}
typedef flexi-n {
type int16;
description
"The given value 'N' is used to determine the nominal central
frequency.
The nominal central frequency, 'f', is defined by:
f = 193100.000 GHz + N x NCFG (measured in GHz),
where 193100.000 GHz (193.100000 THz) is the ITU-T 'anchor
frequency' for transmission over the DWDM grid, and where
NCFG is defined by the flexi-ncfg-type, or by the deprecated
flexi-ch-spc-type.";
reference
"RFC 7699: Generalized Labels for the Flexi-Grid in Lambda
Switch Capable (LSC) Label Switching Routers,
ITU-T G.694.1 (10/2020): Spectral grids for WDM applications:
DWDM frequency grid";
}
typedef flexi-m {
type uint16;
description
"The given value 'M' is used to determine the slot width.
A slot width is defined by:
slot width = M x SWG (measured in GHz),
where SWG is defined by the flexi-slot-width-granularity.";
reference
"RFC 7699: Generalized Labels for the Flexi-Grid in Lambda
Switch Capable (LSC) Label Switching Routers,
ITU-T G.694.1 (10/2020): Spectral grids for WDM applications:
DWDM frequency grid";
}
typedef standard-mode {
type string;
description
"Identifies an ITU-T G.698.2 standard application code.
It MUST be a string with a format that follows the
nomenclature defined in section 5.3 of ITU-T G.698.2.";
reference
"ITU-T G.698.2 (11/2018)";
}
typedef organization-identifier {
type string;
description
"vendor/organization identifier that uses a private mode
out of already defined in G.698.2 ITU-T application-code";
reference
"Section 2.5.2 of RFC YYYY: A YANG Data Model for Optical
Impairment-aware Topology.";
}
// RFC Ed.: replace YYYY with actual RFC number and remove
// this note after draft-ietf-ccamp-optical-impairment-topology-yang
// is published as an RFC
typedef operational-mode {
type string;
description
"Identifies an organization (e.g., vendor) specific mode.
The format of the string has to be defined by the
organization which is responsible for defining the
corresponding optical interface specification.";
reference
"Section 2.5.2 of RFC YYYY: A YANG Data Model for Optical
Impairment-aware Topology.";
}
// RFC Ed.: replace YYYY with actual RFC number and remove
// this note after draft-ietf-ccamp-optical-impairment-topology-yang
// is published as an RFC
typedef frequency-thz {
type decimal64 {
fraction-digits 9;
}
units "THz";
description
"The DWDM frequency in THz, e.g., 193.112500000";
}
typedef frequency-ghz {
type decimal64 {
fraction-digits 6;
}
units "GHz";
description
"The DWDM frequency in GHz, e.g., 193112.500000";
}
typedef snr {
type decimal-2;
units "[email protected]";
description
"(Optical) Signal to Noise Ratio measured over 0.1 nm
resolution bandwidth";
reference
"ITU-T G.977.1 (02/2021): Transverse compatible dense
wavelength division multiplexing applications for repeatered
optical fibre submarine cable systems";
}
typedef snr-or-null {
type union {
type snr;
type empty;
}
description
"(Optical) Signal to Noise Ratio measured over 0.1 nm
resolution bandwidth, when known, or an empty value when
unknown.";
}
typedef fiber-type {
type enumeration {
enum G.652 {
description
"G.652 Standard Singlemode Fiber";
}
enum G.654 {
description
"G.654 Cutoff Shifted Fiber";
}
enum G.653 {
description "G.653 Dispersion Shifted Fiber";
}
enum G.655 {
description "G.655 Non-Zero Dispersion Shifted Fiber";
}
enum G.656 {
description
"G.656 Non-Zero Dispersion for Wideband Optical Transport";
}
enum G.657 {
description
"G.657 Bend-Insensitive Fiber";
}
}
description
"ITU-T based fiber-types";
}
typedef decimal-2 {
type decimal64 {
fraction-digits 2;
}
description
"A decimal64 value with two digits.";
}
typedef decimal-2-or-null {
type union {
type decimal-2;
type empty;
}
description
"A decimal64 value with two digits, when the value is known or
an empty value when the value is not known.";
}
typedef power-gain {
type decimal-2 {
range "0..max";
}
units "dB";
description
"The gain in dB.";
}
typedef power-gain-or-null {
type union {
type power-gain;
type empty;
}
description
"The gain in dB, when it is known or an empty
value when the power gain/loss is not known.";
}
typedef power-loss {
type decimal-2 {
range "0..max";
}
units "dB";
description
"The power attenuation in dB.";
}
typedef power-loss-or-null {
type union {
type power-loss;
type empty;
}
description
"The power attenuation in dB, when it is known or an empty
value when the loss is not known.";
}
typedef power-ratio {
type decimal-2;
units "dB";
description
"The power difference in dB.";
}
typedef power-ratio-or-null {
type union {
type power-ratio;
type empty;
}
description
"The power difference in dB, when it is known or an empty
value when the difference is not known.";
}
typedef power-dbm {
type decimal-2;
units "dBm";
description
"The power in dBm.";
}
typedef power-dbm-or-null {
type union {
type power-dbm;
type empty;
}
description
"The power in dBm, when it is known or an empty value when the
power is not known.";
}
typedef decimal-5 {
type decimal64 {
fraction-digits 5;
}
description
"A decimal64 value with five digits.";
}
typedef decimal-5-or-null {
type union {
type decimal-5;
type empty;
}
description
"A decimal64 value with five digits, when the value is known
or an empty value when the value is not known.";
}
typedef psd {
type decimal64 {
fraction-digits 16;
}
units "W/Hz";
description
"The power spectral density (PSD).
Typical value : 3.9 E-14, resolution 0.1nW/MHz.";
reference
"ITU-T G.9700 (07/2019): Fast access to subscriber terminals
(G.fast) - Power spectral density specification";
}
typedef psd-or-null {
type union {
type psd;
type empty;
}
description
"The power spectral density (PSD), when it is known or an
empty value when the PSD is not known.";
}
typedef decimal-18 {
type decimal64 {
fraction-digits 18;
}
description
"A decimal64 value with eighteen digits.";
}
typedef decimal-18-or-null {
type union {
type decimal-18;
type empty;
}
description
"A decimal64 value with eighteen digits, when the value is
known or an empty value when the value is not known.";
}
/*
* Groupings
*/
grouping wdm-label-start-end {
description
"The WDM label-start or label-end used to specify DWDM and
CWDM label range.";
choice grid-type {
description
"Label for fixed & flexi-DWDM or CWDM grid";
case fixed-dwdm {
leaf dwdm-n {
when "derived-from-or-self(../../../grid-type,
\"wson-grid-dwdm\")" {
description
"Valid only when grid type is DWDM.";
}
type l0-types:dwdm-n;
description
"The given value 'N' is used to determine the
nominal central frequency.";
reference
"RFC 6205: Generalized Labels for Lambda-Switch-Capable
(LSC) Label Switching Routers";
}
}
case cwdm {
leaf cwdm-n {
when "derived-from-or-self(../../../grid-type,
\"wson-grid-cwdm\")" {
description
"Valid only when grid type is CWDM.";
}
type l0-types:cwdm-n;
description
"The given value 'N' is used to determine the nominal
central wavelength.";
reference
"RFC 6205: Generalized Labels for Lambda-Switch-Capable
(LSC) Label Switching Routers";
}
}
case flexi-grid {
uses l0-types:flexi-grid-label-start-end;
}
}
reference
"RFC 6205: Generalized Labels for Lambda-Switch-Capable (LSC)
Label Switching Routers";
}
grouping wdm-label-step {
description
"Label step information for fixed & flexi-DWDM or CWDM grid";
choice l0-grid-type {
description
"Grid type: DWDM, CWDM, etc.";
case fixed-dwdm {
leaf wson-dwdm-channel-spacing {
when "derived-from-or-self(../../grid-type,
\"wson-grid-dwdm\")" {
description
"Valid only when grid type is DWDM.";
}
type identityref {
base dwdm-ch-spc-type;
}
description
"Label-step is the channel spacing (GHz), e.g., 100.000,
50.000, 25.000, or 12.500 GHz for DWDM.";
reference
"RFC 6205: Generalized Labels for Lambda-Switch-Capable
(LSC) Label Switching Routers";
}
}
case cwdm {
leaf wson-cwdm-channel-spacing {
when "derived-from-or-self(../../grid-type,
\"wson-grid-cwdm\")" {