Update Renderer Module
[transportpce.git] / ordmodels / network / src / main / yang / org-openroadm-network-topology-types@2017-12-15.yang
1 module org-openroadm-network-topology-types {
2   namespace "http://org/openroadm/network/topology/types";
3   prefix org-openroadm-network-topology-types;
4
5   import ietf-network {
6     prefix nd;
7     revision-date 2015-06-08;
8   }
9   import ietf-network-topology {
10     prefix nwt;
11     revision-date 2015-06-08;
12   }
13   import org-openroadm-switching-pool-types {
14     prefix org-openroadm-switching-pool-types;
15     revision-date 2017-12-15;
16   }
17
18   organization
19     "OPEN ROADM MSA";
20   contact
21     "www.OpenROADM.org.";
22   description
23     "Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
24      AT&T Intellectual Property.  All other rights reserved.
25
26      Redistribution and use in source and binary forms, with or without modification,
27      are permitted provided that the following conditions are met:
28
29      * Redistributions of source code must retain the above copyright notice, this
30        list of conditions and the following disclaimer.
31      * Redistributions in binary form must reproduce the above copyright notice,
32        this list of conditions and the following disclaimer in the documentation and/or
33        other materials provided with the distribution.
34      * Neither the Members of the Open ROADM MSA Agreement nor the names of its
35        contributors may be used to endorse or promote products derived from this software
36        without specific prior written permission.
37
38      THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT ''AS IS''
39      AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
40      WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
41      IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT BE LIABLE FOR ANY DIRECT,
42      INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
43      NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;  LOSS OF USE, DATA,
44      OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
45      WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
46      ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
47      POSSIBILITY OF SUCH DAMAGE.";
48
49   revision 2017-12-15 {
50     description
51       "Version 2.2";
52   }
53
54   grouping xpdr-tp-bandwidth-sharing {
55     list tp-bandwidth-sharing {
56       key "tp-sharing-id";
57       leaf tp-sharing-id {
58         type uint16;
59       }
60       leaf-list tp-list {
61         type nwt:tp-id;
62       }
63       leaf shared-bandwidth {
64         type uint16;
65         units "Gbps";
66       }
67     }
68   }
69
70   grouping xpdr-odu-switching-pools {
71     list odu-switching-pools {
72       key "switching-pool-number";
73       leaf switching-pool-number {
74         type uint16;
75         description
76           "Unique identifier for this odu-switching-pool";
77       }
78       leaf switching-pool-type {
79         type org-openroadm-switching-pool-types:switching-pool-types;
80       }
81       list non-blocking-list {
82         key "nbl-number";
83         description
84           "List of ports in a non-blocking switch element";
85         leaf nbl-number {
86           type uint16;
87           description
88             "Identifier for this non-blocking-list. Unique within odu-switching-pool";
89         }
90         leaf interconnect-bandwidth-unit {
91           type uint32;
92           description
93             "Switch fabric interconnect bandwidth unit rate in bits per second.
94              Represents granularity of switch fabric";
95         }
96         leaf capable-interconnect-bandwidth {
97           type uint32;
98           description
99             "Total interconnect bandwidth for a non-blocking element expressed as
100              number of inter-connect-bandwidth units";
101         }
102         leaf available-interconnect-bandwidth {
103           type uint32;
104           description
105             "Total interconnect bandwidth available for a non-blocking element can use as
106              number of inter-connect-bandwidth units";
107         }
108         leaf-list tp-list {
109           type nwt:tp-id;
110           description
111             "Termination point. Unique within device";
112         }
113       }
114     }
115   }
116
117   grouping xpdr-otn-tail-attributes {
118     leaf tp-id {
119       type nwt:tp-id;
120     }
121     leaf network-ref {
122       type leafref {
123         path "/nd:network/nd:network-id";
124       }
125       description
126         "Used to reference a network, for example an underlay
127          network.";
128     }
129     leaf node-ref {
130       type leafref {
131         path "/nd:network[nd:network-id=current()/../network-ref]/nd:node/nd:node-id";
132       }
133       description
134         "Used to reference a node.
135          Nodes are identified relative to the network they are
136          contained in.";
137     }
138   }
139 }