From: Balagangadhar Bathula Date: Wed, 22 Sep 2021 17:46:01 +0000 (-0400) Subject: Unofficial regenerator capability support in YANG X-Git-Tag: 5.0.0~139 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=transportpce.git;a=commitdiff_plain;h=ea555c92487de12cfd5b272d0bcda75ede3da3e5 Unofficial regenerator capability support in YANG Some non-compliant Open ROADM devices propose an additional regen identity 'if-OTUCn-ODUCn-regen' in the common Open ROADM YANG model org-openroadm-port-types Though this identity should have been advertised through a deviation, this does not raise any compatibility problem with compliant devices. This ideally temporary work-around proposes to integrate this unofficial regen identity until a compliant solution is found. JIRA: TRNSPRTPCE-532 Change-Id: Ib63b8fb67e7afbf0889eb1916c132d8058df540e Co-authored-by: Guillaume Lambert Signed-off-by: guillaume.lambert --- diff --git a/ordmodels/common/src/main/resources/NOTICE b/ordmodels/common/src/main/resources/NOTICE new file mode 100644 index 000000000..a8fc5c43a --- /dev/null +++ b/ordmodels/common/src/main/resources/NOTICE @@ -0,0 +1,9 @@ +This work includes a modified version of the YANG model org-openroadm-port-types +developed by the Open ROADM MSA. + +It contains an additional regen identity 'if-OTUCn-ODUCn-regen' found in some +non-compliant devices. +Though this identity should have been advertised through a YANG deviation, +this does not raise any compatibility problem with compliant devices. +This is an ideally temporary work-around until a compliant solution is found. +cf https://jira.opendaylight.org/browse/TRNSPRTPCE-532 diff --git a/ordmodels/common/src/main/yang/org-openroadm-port-types@2020-03-27.yang b/ordmodels/common/src/main/yang/org-openroadm-port-types@2020-03-27.yang index ce0bc8679..357d2ddb7 100644 --- a/ordmodels/common/src/main/yang/org-openroadm-port-types@2020-03-27.yang +++ b/ordmodels/common/src/main/yang/org-openroadm-port-types@2020-03-27.yang @@ -12,7 +12,16 @@ module org-openroadm-port-types { contact "OpenROADM.org"; description - "YANG definitions for port types. + "This is a modified version of an Open ROADM MSA official YANG model. + It contains an unofficial and additional regen identity 'if-OTUCn-ODUCn-regen' + found in some non-compliant devices. + Though this identity should have been advertised through a YANG deviation, + this does not raise any compatibility problem with compliant devices. + This file is an ideally temporary work-around until a compliant solution is found. + cf https://jira.opendaylight.org/browse/TRNSPRTPCE-532 + + Original YANG model description below: + YANG definitions for port types. Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016, All other rights reserved. @@ -372,6 +381,11 @@ module org-openroadm-port-types { identity pluggable-type-unspecified { base pluggable-identifiers-identity; } + // The following identity is not present in the original Open ROADM MSA YANG model. + identity if-OTUCn-ODUCn-regen { + base supported-if-capability; + } + typedef port-wavelength-types { type enumeration {