1 module org-openroadm-routing-constraints {
2 namespace "http://org/openroadm/routing/constrains";
3 prefix org-openroadm-routing-constraints;
10 "YANG definitions of routing constraints.
12 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
13 AT&T Intellectual Property. All other rights reserved.
15 Redistribution and use in source and binary forms, with or without modification,
16 are permitted provided that the following conditions are met:
18 * Redistributions of source code must retain the above copyright notice, this
19 list of conditions and the following disclaimer.
20 * Redistributions in binary form must reproduce the above copyright notice,
21 this list of conditions and the following disclaimer in the documentation and/or
22 other materials provided with the distribution.
23 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
24 contributors may be used to endorse or promote products derived from this software
25 without specific prior written permission.
27 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
28 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
29 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
30 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
31 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
32 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
33 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
34 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 POSSIBILITY OF SUCH DAMAGE";
43 grouping routing-constraints {
44 container hard-constraints {
47 container soft-constraints {
52 grouping constraints {
53 leaf-list customer-code {
56 choice co-routing-or-general {
59 uses diversity-existing-service-contraints;
62 uses common-constraints;
63 leaf-list supporting-service-name {
65 "Supporting service(s) to exclude from this route.";
70 uses common-constraints;
71 leaf-list supporting-service-name {
73 "Supporting service(s) to include in this route.";
79 "Maximum latency allowed";
87 container co-routing {
88 leaf-list existing-service {
91 "Diverse from existing services identified by facility CLFI";
98 grouping common-constraints {
99 leaf-list fiber-bundle {
110 grouping diversity-existing-service-contraints {
111 leaf-list existing-service {
114 "Diverse from existing services identified by facility CLFI";
116 container existing-service-applicability {