module org-openroadm-network-types { namespace "http://org/openroadm/network/types"; prefix nt; import ietf-network-topology { prefix nwt; revision-date 2015-06-08; } import ietf-yang-types { prefix yang; revision-date 2013-07-15; } import org-openroadm-common-types { prefix org-openroadm-common-types; revision-date 2017-09-29; } import org-openroadm-port-types { prefix org-openroadm-port-types; revision-date 2017-09-29; } organization "OPEN ROADM MSA"; contact "www.OpenROADM.org."; description "Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016, AT&T Intellectual Property. All other rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the Members of the Open ROADM MSA Agreement nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."; revision 2017-09-29 { description "Version 2.1"; } revision 2017-07-28 { description "Version 2.0.1 - added revision-date to imports"; } revision 2017-06-26 { description "Version 2.0"; } typedef openroadm-node-type { type enumeration { enum "ROADM" { value 1; } enum "DEGREE" { value 11; } enum "SRG" { value 12; } enum "XPONDER" { value 3; } enum "EXT-PLUGGABLE" { value 4; } enum "TPDR" { value 13; } enum "MUXPDR" { value 14; } enum "REGEN" { value 15; } enum "REGEN-UNI" { value 16; } enum "SWITCH" { value 17; } } } typedef openroadm-tp-type { type enumeration { enum "DEGREE-TX-TTP" { value 1; } enum "DEGREE-RX-TTP" { value 2; } enum "DEGREE-TX-CTP" { value 3; } enum "DEGREE-RX-CTP" { value 4; } enum "SRG-TX-CP" { value 5; } enum "SRG-RX-CP" { value 6; } enum "SRG-TXRX-PP" { value 7; } enum "SRG-RX-PP" { value 8; } enum "SRG-TX-PP" { value 9; } enum "XPONDER-NETWORK" { value 10; } enum "XPONDER-CLIENT" { value 11; } enum "EXT-PLUGGABLE-TP" { value 12; } enum "DEGREE-TXRX-TTP" { value 13; } enum "SRG-TXRX-CP" { value 14; } enum "XPONDER-PORT" { value 15; } enum "DEGREE-TXRX-CTP" { value 16; } } } typedef openroadm-link-type { type enumeration { enum "EXPRESS-LINK" { value 1; } enum "ADD-LINK" { value 2; } enum "DROP-LINK" { value 3; } enum "ROADM-TO-ROADM" { value 4; } enum "XPONDER-INPUT" { value 5; } enum "XPONDER-OUTPUT" { value 6; } enum "OTN-LINK" { value 7; } } } typedef openroadm-node-status { type enumeration { enum "PLANNED" { value 1; } enum "DEPLOYED" { value 2; } enum "MAINTENANCE" { value 3; } } } typedef openroadm-node-mount-status { type enumeration { enum "MOUNTED" { value 1; } enum "UNMOUNTED" { value 2; } } } grouping wavelengths { leaf index { type uint32; } uses flex-wave; } grouping flex-wave { leaf frequency { type org-openroadm-common-types:frequency-THz; description "Center Frequency in THz"; config true; } leaf width { type org-openroadm-common-types:frequency-GHz; description "Frequency width in GHz."; config true; } } grouping xpdr-tp-supported-interfaces { list supported-interface-capability { key "if-cap-type"; description "Supported interface capability on the port."; leaf if-cap-type { description "Interface type/hierarchy/rate supported on this port"; type identityref { base org-openroadm-port-types:supported-if-capability; } } } } grouping xpdr-tp-bandwidth-sharing { list tp-bandwidth-sharing { key "tp-sharing-id"; leaf tp-sharing-id { type uint16; } leaf-list tp-list { type nwt:tp-id; } leaf shared-bandwidth { type uint16; units "Gbps"; } } } grouping xpdr-odu-switching-pools { list odu-switching-pools { key "switching-pool-number"; leaf switching-pool-number { description "Unique identifier for this odu-switching-pool"; type uint16; } leaf switching-pool-type { type enumeration { enum "non-blocking" { value 1; description "Single non-blocking element"; } enum "blocking" { value 2; description "Multiple connected non-blocking lists"; } } } list non-blocking-list { description "List of ports in a non-blocking switch element"; key "nbl-number"; leaf nbl-number { description "Identifier for this non-blocking-list. Unique within odu-switching-pool"; type uint16; } leaf interconnect-bandwidth-unit { description "Switch fabric interconnect bandwidth unit rate in bits per second. Represents granularity of switch fabric"; type uint32; } leaf capable-interconnect-bandwidth { description "Total interconnect bandwidth for a non-blocking element expressed as number of inter-connect-bandwidth units"; type uint32; } leaf available-interconnect-bandwidth { description "Total interconnect bandwidth available for a non-blocking element can use as number of inter-connect-bandwidth units"; type uint32; } leaf-list tp-list { description "Termination point. Unique within device"; type nwt:tp-id; } } } } grouping node-due-date-list { list due-dates { key "id"; leaf id { type uint16; } leaf start-date { type yang:date-and-time; description "date and time node will begin maintenance status or date when node is planned"; } leaf end-date { type yang:date-and-time; description "date and time node will end maintenance or date when node is deployed"; } } } }