ietf-layer0-types@2021-07-14.yang   ietf-layer0-types@2021-07-14.formatted.yang 
module ietf-layer0-types { module ietf-layer0-types {
yang-version 1.1; yang-version 1.1;
namespace "urn:ietf:params:xml:ns:yang:ietf-layer0-types"; namespace "urn:ietf:params:xml:ns:yang:ietf-layer0-types";
prefix l0-types;
prefix "l0-types";
organization organization
"IETF CCAMP Working Group"; "IETF CCAMP Working Group";
contact contact
"WG Web: <https://datatracker.ietf.org/wg/ccamp/> "WG Web: <https://datatracker.ietf.org/wg/ccamp/>
WG List: <mailto:ccamp@ietf.org> WG List: <mailto:ccamp@ietf.org>
Editor: Haomian Zheng Editor: Haomian Zheng
<mailto:zhenghaomian@huawei.com> <mailto:zhenghaomian@huawei.com>
skipping to change at line 48 skipping to change at line 46
Redistribution and use in source and binary forms, with Redistribution and use in source and binary forms, with
or without modification, is permitted pursuant to, and or without modification, is permitted pursuant to, and
subject to the license terms contained in, the Simplified subject to the license terms contained in, the Simplified
BSD License set forth in Section 4.c of the IETF Trust's BSD License set forth in Section 4.c of the IETF Trust's
Legal Provisions Relating to IETF Documents Legal Provisions Relating to IETF Documents
(https://trustee.ietf.org/license-info). (https://trustee.ietf.org/license-info).
This version of this YANG module is part of RFC 9093; see This version of this YANG module is part of RFC 9093; see
the RFC itself for full legal notices."; the RFC itself for full legal notices.";
revision "2021-07-14" { revision 2021-07-14 {
description description
"Initial version"; "Initial version";
reference reference
"RFC 9093: A YANG Data Model for Layer 0 Types"; "RFC 9093: A YANG Data Model for Layer 0 Types";
} }
typedef dwdm-n { typedef dwdm-n {
type int16; type int16;
description description
"The given value 'N' is used to determine the nominal central "The given value 'N' is used to determine the nominal central
skipping to change at line 269 skipping to change at line 267
grouping wson-label-start-end { grouping wson-label-start-end {
description description
"The WSON label-start or label-end used to specify WSON label "The WSON label-start or label-end used to specify WSON label
range."; range.";
choice grid-type { choice grid-type {
description description
"Label for DWDM or CWDM grid"; "Label for DWDM or CWDM grid";
case dwdm { case dwdm {
leaf dwdm-n { leaf dwdm-n {
when 'derived-from-or-self(../../../grid-type, when "derived-from-or-self(../../../grid-type,
"wson-grid-dwdm")' \"wson-grid-dwdm\")" {
{
description description
"Valid only when grid type is DWDM."; "Valid only when grid type is DWDM.";
} }
type l0-types:dwdm-n; type l0-types:dwdm-n;
description description
"The central frequency of DWDM."; "The central frequency of DWDM.";
reference reference
"RFC 6205: Generalized Labels for Lambda-Switch-Capable "RFC 6205: Generalized Labels for Lambda-Switch-Capable
(LSC) Label Switching Routers"; (LSC) Label Switching Routers";
} }
} }
case cwdm { case cwdm {
leaf cwdm-n { leaf cwdm-n {
when 'derived-from-or-self(../../../grid-type, when "derived-from-or-self(../../../grid-type,
"wson-grid-cwdm")' \"wson-grid-cwdm\")" {
{
description description
"Valid only when grid type is CWDM."; "Valid only when grid type is CWDM.";
} }
type l0-types:cwdm-n; type l0-types:cwdm-n;
description description
"Channel wavelength computing input."; "Channel wavelength computing input.";
reference reference
"RFC 6205: Generalized Labels for Lambda-Switch-Capable "RFC 6205: Generalized Labels for Lambda-Switch-Capable
(LSC) Label Switching Routers"; (LSC) Label Switching Routers";
} }
skipping to change at line 313 skipping to change at line 309
} }
grouping wson-label-hop { grouping wson-label-hop {
description description
"Generic label-hop information for WSON"; "Generic label-hop information for WSON";
choice grid-type { choice grid-type {
description description
"Label for DWDM or CWDM grid"; "Label for DWDM or CWDM grid";
case dwdm { case dwdm {
choice single-or-super-channel { choice single-or-super-channel {
description "single or super channel"; description
"single or super channel";
case single { case single {
leaf dwdm-n { leaf dwdm-n {
type l0-types:dwdm-n; type l0-types:dwdm-n;
description description
"The given value 'N' is used to determine the "The given value 'N' is used to determine the
nominal central frequency."; nominal central frequency.";
} }
} }
case super { case super {
leaf-list subcarrier-dwdm-n { leaf-list subcarrier-dwdm-n {
skipping to change at line 360 skipping to change at line 357
Label Switching Routers"; Label Switching Routers";
} }
grouping l0-label-range-info { grouping l0-label-range-info {
description description
"Information about Layer 0 label range."; "Information about Layer 0 label range.";
leaf grid-type { leaf grid-type {
type identityref { type identityref {
base l0-grid-type; base l0-grid-type;
} }
description "Grid type"; description
"Grid type";
} }
leaf priority { leaf priority {
type uint8; type uint8;
description description
"Priority in Interface Switching Capability Descriptor "Priority in Interface Switching Capability Descriptor
(ISCD)."; (ISCD).";
reference reference
"RFC 4203: OSPF Extensions in Support of Generalized "RFC 4203: OSPF Extensions in Support of Generalized
Multi-Protocol Label Switching (GMPLS)"; Multi-Protocol Label Switching (GMPLS)";
} }
reference reference
"RFC 6205: Generalized Labels for Lambda-Switch-Capable (LSC) "RFC 6205: Generalized Labels for Lambda-Switch-Capable (LSC)
Label Switching Routers"; Label Switching Routers";
} }
grouping wson-label-step { grouping wson-label-step {
description "Label step information for WSON"; description
"Label step information for WSON";
choice l0-grid-type { choice l0-grid-type {
description description
"Grid type: DWDM, CWDM, etc."; "Grid type: DWDM, CWDM, etc.";
case dwdm { case dwdm {
leaf wson-dwdm-channel-spacing { leaf wson-dwdm-channel-spacing {
when 'derived-from-or-self(../../grid-type, when "derived-from-or-self(../../grid-type,
"wson-grid-dwdm")' \"wson-grid-dwdm\")" {
{
description description
"Valid only when grid type is DWDM."; "Valid only when grid type is DWDM.";
} }
type identityref { type identityref {
base dwdm-ch-spc-type; base dwdm-ch-spc-type;
} }
description description
"Label-step is the channel-spacing (GHz), e.g., 100.000, "Label-step is the channel-spacing (GHz), e.g., 100.000,
50.000, 25.000, or 12.500 GHz for DWDM."; 50.000, 25.000, or 12.500 GHz for DWDM.";
reference reference
"RFC 6205: Generalized Labels for Lambda-Switch-Capable "RFC 6205: Generalized Labels for Lambda-Switch-Capable
(LSC) Label Switching Routers"; (LSC) Label Switching Routers";
} }
} }
case cwdm { case cwdm {
leaf wson-cwdm-channel-spacing { leaf wson-cwdm-channel-spacing {
when 'derived-from-or-self(../../grid-type, when "derived-from-or-self(../../grid-type,
"wson-grid-cwdm")' \"wson-grid-cwdm\")" {
{
description description
"Valid only when grid type is CWDM."; "Valid only when grid type is CWDM.";
} }
type identityref { type identityref {
base cwdm-ch-spc-type; base cwdm-ch-spc-type;
} }
description description
"Label-step is the channel-spacing (nm), i.e., 20 nm "Label-step is the channel-spacing (nm), i.e., 20 nm
for CWDM, which is the only value defined for CWDM."; for CWDM, which is the only value defined for CWDM.";
reference reference
skipping to change at line 444 skipping to change at line 441
"The given value 'N' is used to determine the nominal "The given value 'N' is used to determine the nominal
central frequency."; central frequency.";
} }
reference reference
"RFC 7698: Framework and Requirements for GMPLS-Based Control "RFC 7698: Framework and Requirements for GMPLS-Based Control
of Flexi-Grid Dense Wavelength Division Multiplexing (DWDM) of Flexi-Grid Dense Wavelength Division Multiplexing (DWDM)
Networks"; Networks";
} }
grouping flexi-grid-frequency-slot { grouping flexi-grid-frequency-slot {
description "Flexi-grid frequency slot grouping."; description
"Flexi-grid frequency slot grouping.";
uses flexi-grid-label-start-end; uses flexi-grid-label-start-end;
leaf flexi-m { leaf flexi-m {
type l0-types:flexi-m; type l0-types:flexi-m;
description description
"The given value 'M' is used to determine the slot width."; "The given value 'M' is used to determine the slot width.";
} }
reference reference
"RFC 7698: Framework and Requirements for GMPLS-Based Control "RFC 7698: Framework and Requirements for GMPLS-Based Control
of Flexi-Grid Dense Wavelength Division Multiplexing (DWDM) of Flexi-Grid Dense Wavelength Division Multiplexing (DWDM)
Networks"; Networks";
skipping to change at line 460 skipping to change at line 458
} }
reference reference
"RFC 7698: Framework and Requirements for GMPLS-Based Control "RFC 7698: Framework and Requirements for GMPLS-Based Control
of Flexi-Grid Dense Wavelength Division Multiplexing (DWDM) of Flexi-Grid Dense Wavelength Division Multiplexing (DWDM)
Networks"; Networks";
} }
grouping flexi-grid-label-hop { grouping flexi-grid-label-hop {
description description
"Generic label-hop information for Flexi-grid."; "Generic label-hop information for Flexi-grid.";
choice single-or-super-channel { choice single-or-super-channel {
description "single or super channel"; description
"single or super channel";
case single { case single {
uses flexi-grid-frequency-slot; uses flexi-grid-frequency-slot;
} }
case super { case super {
list subcarrier-flexi-n { list subcarrier-flexi-n {
key flexi-n; key "flexi-n";
uses flexi-grid-frequency-slot; uses flexi-grid-frequency-slot;
description description
"List of subcarrier channels for flexi-grid super "List of subcarrier channels for flexi-grid super
channel."; channel.";
} }
} }
} }
reference reference
"RFC 7698: Framework and Requirements for GMPLS-Based Control "RFC 7698: Framework and Requirements for GMPLS-Based Control
of Flexi-Grid Dense Wavelength Division Multiplexing (DWDM) of Flexi-Grid Dense Wavelength Division Multiplexing (DWDM)
Networks"; Networks";
} }
grouping flexi-grid-label-range-info { grouping flexi-grid-label-range-info {
description description
"Flexi-grid-specific label range related information"; "Flexi-grid-specific label range related information";
uses l0-label-range-info; uses l0-label-range-info;
container flexi-grid { container flexi-grid {
description "flexi-grid definition"; description
"flexi-grid definition";
leaf slot-width-granularity { leaf slot-width-granularity {
type identityref { type identityref {
base flexi-slot-width-granularity; base flexi-slot-width-granularity;
} }
default flexi-swg-12p5ghz; default "flexi-swg-12p5ghz";
description description
"Minimum space between slot widths. Default is 12.500 "Minimum space between slot widths. Default is 12.500
GHz."; GHz.";
reference reference
"RFC 7698: Framework and Requirements for GMPLS-Based "RFC 7698: Framework and Requirements for GMPLS-Based
Control of Flexi-Grid Dense Wavelength Division Control of Flexi-Grid Dense Wavelength Division
Multiplexing (DWDM) Networks"; Multiplexing (DWDM) Networks";
} }
leaf min-slot-width-factor { leaf min-slot-width-factor {
type uint16 { type uint16 {
range "1..max"; range "1..max";
} }
default 1; default "1";
description description
"A multiplier of the slot width granularity, indicating "A multiplier of the slot width granularity, indicating
the minimum slot width supported by an optical port. the minimum slot width supported by an optical port.
Minimum slot width is calculated by: Minimum slot width is calculated by:
Minimum slot width (GHz) = Minimum slot width (GHz) =
min-slot-width-factor * slot-width-granularity."; min-slot-width-factor * slot-width-granularity.";
reference reference
"RFC 8363: GMPLS OSPF-TE Extensions in Support of Flexi- "RFC 8363: GMPLS OSPF-TE Extensions in Support of Flexi-
Grid Dense Wavelength Division Multiplexing (DWDM) Grid Dense Wavelength Division Multiplexing (DWDM)
skipping to change at line 548 skipping to change at line 546
slot width is equal to minimum slot width."; slot width is equal to minimum slot width.";
reference reference
"RFC 8363: GMPLS OSPF-TE Extensions in Support of Flexi- "RFC 8363: GMPLS OSPF-TE Extensions in Support of Flexi-
Grid Dense Wavelength Division Multiplexing (DWDM) Grid Dense Wavelength Division Multiplexing (DWDM)
Networks"; Networks";
} }
} }
} }
grouping flexi-grid-label-step { grouping flexi-grid-label-step {
description "Label step information for flexi-grid"; description
"Label step information for flexi-grid";
leaf flexi-grid-channel-spacing { leaf flexi-grid-channel-spacing {
type identityref { type identityref {
base flexi-ch-spc-type; base flexi-ch-spc-type;
} }
default flexi-ch-spc-6p25ghz; default "flexi-ch-spc-6p25ghz";
description description
"Label-step is the nominal central frequency granularity "Label-step is the nominal central frequency granularity
(GHz), e.g., 6.25 GHz."; (GHz), e.g., 6.25 GHz.";
reference reference
"RFC 7699: Generalized Labels for the Flexi-Grid in Lambda "RFC 7699: Generalized Labels for the Flexi-Grid in Lambda
Switch Capable (LSC) Label Switching Routers"; Switch Capable (LSC) Label Switching Routers";
} }
leaf flexi-n-step { leaf flexi-n-step {
type uint8; type uint8;
description description
"This attribute defines the multiplier for the supported "This attribute defines the multiplier for the supported
values of 'N'. values of 'N'.
For example, given a grid with a nominal central frequency For example, given a grid with a nominal central frequency
granularity of 6.25 GHz, the granularity of the supported granularity of 6.25 GHz, the granularity of the supported
values of the nominal central frequency could be 12.5 GHz. values of the nominal central frequency could be 12.5 GHz.
 End of changes. 20 change blocks. 
30 lines changed or deleted 31 lines changed or added

This html diff was produced by rfcdiff 1.48. The latest version is available from http://tools.ietf.org/tools/rfcdiff/