1 module org-openroadm-topology {
2 namespace "http://org/openroadm/topology";
3 prefix org-openroadm-topology;
5 import org-openroadm-resource {
6 prefix org-openroadm-resource;
7 revision-date 2021-12-10;
9 import org-openroadm-network-resource {
10 prefix org-openroadm-network-resource;
11 revision-date 2019-11-29;
19 "YANG definitions of topology.
21 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
22 All other rights reserved.
24 Redistribution and use in source and binary forms, with or without modification,
25 are permitted provided that the following conditions are met:
27 * Redistributions of source code must retain the above copyright notice, this
28 list of conditions and the following disclaimer.
29 * Redistributions in binary form must reproduce the above copyright notice,
30 this list of conditions and the following disclaimer in the documentation and/or
31 other materials provided with the distribution.
32 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
33 contributors may be used to endorse or promote products derived from this software
34 without specific prior written permission.
36 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
37 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
38 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
39 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
40 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
41 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
42 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
43 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
44 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
45 POSSIBILITY OF SUCH DAMAGE";
103 revision 2017-09-29 {
107 revision 2017-07-28 {
109 "Version 2.0.1 - added revision-date to imports";
111 revision 2017-06-26 {
115 revision 2016-10-14 {
122 "Topology reports the individual hops along the service in the A to Z direction and Z to A directions. This includes both ports internal to a device and those
123 at its edge that are available for externally connections. It includes both physical and logical ports.
124 Physical ports are ordered with the logical ports that run over them as follows:
125 a.\t On ingress to a node/card, physical then logical
126 b.\t On egress to a node/card, logical then physical";
132 "Unique identifier for this topology component within this service";
134 container computation-results {
136 "parameters resulting of path computation";
137 uses org-openroadm-resource:path-computation-outputs;
147 "Unique identifier for this topology component within this service";
149 container computation-results {
151 "parameters resulting of path computation";
152 uses org-openroadm-resource:path-computation-outputs;
159 grouping route_info {
163 "Unique identifier for the subroute or segment of the topology";
165 leaf-list previous_ids {
168 "Pointer to the previous id or set of ids that allows reconstruction
169 of the end-to-end route from the segments. Can be omitted if the
170 previous-id = current-id – 1 (if id is a number-based string) or if
171 each subroute is already representing an end-to-end route.";
181 "The given resource is on the edge of the node, and used in relationships to resources outside of the node.";
186 "The given resource is internally to the node";
190 uses org-openroadm-resource:resource {
191 augment "resource/resource/interface" {
192 uses org-openroadm-resource:resource-reporting;
194 augment "resource/resource/circuit-pack" {
195 leaf circuit-pack-type {
198 "Type of circuit-pack";
200 leaf circuit-pack-product-code {
203 "Product code of the circuit-pack";
209 grouping network-topology {
211 "network-topology defines the ordered a-to-z and z-to-a topology in terms of network model entities: tp-id and link-id";
217 "Unique identifier for this network-topology component within this service";
220 uses org-openroadm-network-resource:network-resource;
227 "Unigue identifier for this network-topology component within this service";
230 uses org-openroadm-network-resource:network-resource;