blob: 229726b0884c333135a33f0619484d13daf19e67 [file] [log] [blame]
Marc De Leenheerf20c7fb2017-05-05 10:24:41 -07001module org-openroadm-routing-constraints {
2 namespace "http://org/openroadm/routing/constrains";
3 prefix org-openroadm-routing-constraints;
4
5 organization
6 "Open ROADM MSA";
7 contact
8 "OpenROADM.org";
9 description
10 "YANG definitions of routing constraints.
11
12 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
13 AT&T Intellectual Property. All other rights reserved.
14
15 Redistribution and use in source and binary forms, with or without modification,
16 are permitted provided that the following conditions are met:
17
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.
26
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";
37
38 revision 2016-10-14 {
39 description
40 "Version 1.2";
41 }
42
43 grouping routing-constraints {
44 container hard-constraints {
45 uses constraints;
46 }
47 container soft-constraints {
48 uses constraints;
49 }
50 }
51
52 grouping constraints {
53 leaf-list customer-code {
54 type string;
55 }
56 choice co-routing-or-general {
57 case general {
58 container diversity {
59 uses diversity-existing-service-contraints;
60 }
61 container exclude {
62 uses common-constraints;
63 leaf-list supporting-service-name {
64 description
65 "Supporting service(s) to exclude from this route.";
66 type string;
67 }
68 }
69 container include {
70 uses common-constraints;
71 leaf-list supporting-service-name {
72 description
73 "Supporting service(s) to include in this route.";
74 type string;
75 }
76 }
77 container latency {
78 description
79 "Maximum latency allowed";
80 leaf max-latency {
81 type uint32;
82 units "ms";
83 }
84 }
85 }
86 case co-routing {
87 container co-routing {
88 leaf-list existing-service {
89 type string;
90 description
91 "Diverse from existing services identified by facility CLFI";
92 }
93 }
94 }
95 }
96 }
97
98 grouping common-constraints {
99 leaf-list fiber-bundle {
100 type string;
101 }
102 leaf-list site {
103 type string;
104 }
105 leaf-list node-id {
106 type string;
107 }
108 }
109
110 grouping diversity-existing-service-contraints {
111 leaf-list existing-service {
112 type string;
113 description
114 "Diverse from existing services identified by facility CLFI";
115 }
116 container existing-service-applicability {
117 leaf site {
118 type boolean;
119 }
120 leaf node {
121 type boolean;
122 }
123 leaf srlg {
124 type boolean;
125 }
126 }
127 }
128}