1 module org-openroadm-routing-constraints {
2 namespace "http://org/openroadm/routing/constrains";
3 prefix org-openroadm-routing-constraints;
5 import org-openroadm-common-node-types {
6 prefix org-openroadm-common-node-types;
7 revision-date 2018-11-30;
9 import org-openroadm-network-resource {
10 prefix org-openroadm-network-resource;
11 revision-date 2018-11-30;
19 "YANG definitions of routing constraints.
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";
80 grouping routing-constraints {
81 container hard-constraints {
84 container soft-constraints {
89 grouping constraints {
90 leaf-list customer-code {
93 choice co-routing-or-general {
96 uses diversity-existing-service-constraints;
99 uses common-constraints;
100 leaf-list supporting-service-name {
103 "Supporting service(s) to exclude from this route.";
107 uses common-constraints;
108 leaf-list supporting-service-name {
111 "Supporting service(s) to include in this route.";
116 "Maximum latency allowed";
122 container hop-count {
124 "Maximum hops allowed";
125 leaf max-wdm-hop-count {
128 leaf max-otn-hop-count {
132 container TE-metric {
134 "Maximum cost allowed";
135 leaf max-wdm-TE-metric {
138 leaf max-otn-TE-metric {
144 "Maximum distance allowed";
154 container co-routing {
155 leaf-list existing-service {
158 "Diverse from existing services identified by facility CLFI";
165 grouping common-constraints {
166 leaf-list fiber-bundle {
172 "unique identifier for SRLG";
177 "site identifies the clli.
178 clli from the device model; clli-network-ref + clli from the network model.";
181 type org-openroadm-common-node-types:node-id-type;
183 "node-id from the device model; openroadm-network-ref + node-id from the network model.";
185 list link-identifier {
186 key "link-network-id link-id";
188 "Refers to link-id(s) from the network model.
189 The openroadm-topology-ref + link-id identifies the link in the network model.";
190 uses org-openroadm-network-resource:network-link-name;
194 grouping diversity-existing-service-constraints {
195 leaf-list existing-service {
198 "Diverse from existing services identified by facility CLFI";
200 container existing-service-applicability {