Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ietf-layer0-types-ext to resolve some issues #25

Merged
merged 6 commits into from Jun 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
69 changes: 68 additions & 1 deletion ietf-layer0-types-ext.yang
Expand Up @@ -38,7 +38,7 @@ module ietf-layer0-types-ext {
This version of this YANG module is part of RFC XXXX; see
the RFC itself for full legal notices.";

revision "2021-02-12" {
revision "2021-06-10" {
description
"Initial Version";
reference
Expand Down Expand Up @@ -316,6 +316,24 @@ module ietf-layer0-types-ext {
"OTUCn (n x 105.25 Gb/s)";
}

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)";
}

/*
* Typedefs
*/
Expand Down Expand Up @@ -390,6 +408,31 @@ module ietf-layer0-types-ext {
resolution bandwidth";
}

typedef fiber-type {
type enumeration {
enum G.652 {
italobusi marked this conversation as resolved.
Show resolved Hide resolved
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";
}

/*
* Groupings
Expand Down Expand Up @@ -923,4 +966,28 @@ module ietf-layer0-types-ext {
description "Wavelength Allocation Method";
}
}

grouping frequency-range {
description
"The parameters that define a frequency range.";
italobusi marked this conversation as resolved.
Show resolved Hide resolved
leaf lower-frequency {
type frequency-thz;
mandatory true;
description
"The lower frequency boundary of the
frequency range.";
}
leaf upper-frequency {
type frequency-thz;
must '. > ../lower-frequency' {
italobusi marked this conversation as resolved.
Show resolved Hide resolved
error-message
"The upper frequency must be greater than the lower
frequency.";
}
mandatory true;
description
"The upper frequency boundary of the
frequency range.";
}
}
}