gnpy-api 0.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- gnpy_api-0.0.0.dist-info/METADATA +78 -0
- gnpy_api-0.0.0.dist-info/RECORD +40 -0
- gnpy_api-0.0.0.dist-info/WHEEL +5 -0
- gnpy_api-0.0.0.dist-info/licenses/AUTHORS +1 -0
- gnpy_api-0.0.0.dist-info/licenses/LICENSE +28 -0
- gnpy_api-0.0.0.dist-info/pbr.json +1 -0
- gnpy_api-0.0.0.dist-info/top_level.txt +1 -0
- gnpyapi/__init__.py +0 -0
- gnpyapi/core/__init__.py +12 -0
- gnpyapi/core/exception/__init__.py +1 -0
- gnpyapi/core/exception/config_error.py +14 -0
- gnpyapi/core/exception/equipment_error.py +14 -0
- gnpyapi/core/exception/exception_handler.py +34 -0
- gnpyapi/core/exception/path_computation_error.py +14 -0
- gnpyapi/core/exception/topology_error.py +13 -0
- gnpyapi/core/model/__init__.py +1 -0
- gnpyapi/core/model/error.py +17 -0
- gnpyapi/core/model/result.py +8 -0
- gnpyapi/core/route/__init__.py +1 -0
- gnpyapi/core/route/path_request_route.py +28 -0
- gnpyapi/core/route/status_route.py +8 -0
- gnpyapi/core/service/__init__.py +1 -0
- gnpyapi/core/service/config_service.py +4 -0
- gnpyapi/core/service/equipment_service.py +5 -0
- gnpyapi/core/service/path_request_service.py +36 -0
- gnpyapi/core/service/topology_service.py +5 -0
- gnpyapi/exampledata/planning_demand_example.json +1578 -0
- gnpyapi/tools/__init__.py +0 -0
- gnpyapi/yang/gnpy-api@2021-01-06.yang +81 -0
- gnpyapi/yang/gnpy-eqpt-config@2020-10-22.yang +442 -0
- gnpyapi/yang/gnpy-eqpt-config@2025-01-20.yang +770 -0
- gnpyapi/yang/gnpy-network-topology@2020-10-22.yang +300 -0
- gnpyapi/yang/gnpy-network-topology@2025-01-20.yang +594 -0
- gnpyapi/yang/gnpy-path-computation-simplified@2020-10-22.yang +559 -0
- gnpyapi/yang/gnpy-path-computation@2025-01-21.yang +632 -0
- gnpyapi/yang/ietf-layer0-types@2024-03-04.yang +2247 -0
- gnpyapi/yang/ietf-optical-impairment-topology@2024-05-21.yang +1776 -0
- gnpyapi/yang/ietf-routing-types@2017-12-04.yang +771 -0
- gnpyapi/yang/ietf-te-topology@2020-08-06.yang +1952 -0
- gnpyapi/yang/ietf-te-types@2022-10-21.yang +3458 -0
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
module gnpy-network-topology {
|
|
2
|
+
yang-version 1.1;
|
|
3
|
+
namespace "gnpy:gnpy-network-topology";
|
|
4
|
+
prefix gnpynt;
|
|
5
|
+
|
|
6
|
+
organization
|
|
7
|
+
"Telecom Infra Project OOPT PSE Working Group";
|
|
8
|
+
contact
|
|
9
|
+
"WG Web: <https://github.com/Telecominfraproject/oopt-gnpy>
|
|
10
|
+
contact: <mailto:ahmed.triki@orange.com>
|
|
11
|
+
contact: <mailto:esther.lerouzic@orange.com>
|
|
12
|
+
";
|
|
13
|
+
description
|
|
14
|
+
"YANG model for gnpy network input for path computation - 2020 - candi preversion";
|
|
15
|
+
|
|
16
|
+
revision 2020-10-22 {
|
|
17
|
+
description
|
|
18
|
+
"draft for experimental/2020-candi";
|
|
19
|
+
reference
|
|
20
|
+
"YANG model for network input for path computation with gnpy";
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
identity type-element {
|
|
24
|
+
description
|
|
25
|
+
"Base identity for element type";
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
identity Transceiver {
|
|
29
|
+
base type-element;
|
|
30
|
+
description
|
|
31
|
+
" Transceiver element";
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
identity Fiber {
|
|
35
|
+
base type-element;
|
|
36
|
+
description
|
|
37
|
+
"Fiber element (unidirectional)";
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
identity Roadm {
|
|
41
|
+
base type-element;
|
|
42
|
+
description
|
|
43
|
+
"Roadm element";
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
identity Edfa {
|
|
47
|
+
base type-element;
|
|
48
|
+
description
|
|
49
|
+
"Edfa element";
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
identity Fused {
|
|
53
|
+
base type-element;
|
|
54
|
+
description
|
|
55
|
+
"Fused element ; non amplified connection between two fiber spans ;
|
|
56
|
+
can be used to model optical distribution frame, or losses due to
|
|
57
|
+
connectors or fused in a span";
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
identity length-unit {
|
|
61
|
+
description
|
|
62
|
+
"length unit";
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
identity km {
|
|
66
|
+
base length-unit;
|
|
67
|
+
description
|
|
68
|
+
"kilometers";
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
identity m {
|
|
72
|
+
base length-unit;
|
|
73
|
+
description
|
|
74
|
+
"meter";
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
typedef Coordinate {
|
|
78
|
+
type decimal64 {
|
|
79
|
+
fraction-digits 6;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
typedef Coef {
|
|
84
|
+
type decimal64 {
|
|
85
|
+
fraction-digits 2;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
grouping location-attributes {
|
|
90
|
+
container location {
|
|
91
|
+
leaf city {
|
|
92
|
+
type string;
|
|
93
|
+
mandatory true;
|
|
94
|
+
}
|
|
95
|
+
leaf region {
|
|
96
|
+
type string;
|
|
97
|
+
mandatory true;
|
|
98
|
+
}
|
|
99
|
+
leaf latitude {
|
|
100
|
+
type Coordinate;
|
|
101
|
+
mandatory true;
|
|
102
|
+
}
|
|
103
|
+
leaf longitude {
|
|
104
|
+
type Coordinate;
|
|
105
|
+
mandatory true;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
grouping fiber-params {
|
|
111
|
+
description
|
|
112
|
+
".....";
|
|
113
|
+
leaf length {
|
|
114
|
+
type decimal64 {
|
|
115
|
+
fraction-digits 2;
|
|
116
|
+
}
|
|
117
|
+
mandatory true;
|
|
118
|
+
}
|
|
119
|
+
leaf loss_coef {
|
|
120
|
+
type decimal64 {
|
|
121
|
+
fraction-digits 2;
|
|
122
|
+
}
|
|
123
|
+
mandatory true;
|
|
124
|
+
units db/km;
|
|
125
|
+
description "Loss coefficient of the fiber span (dB/km)";
|
|
126
|
+
}
|
|
127
|
+
leaf length_units {
|
|
128
|
+
type identityref {
|
|
129
|
+
base length-unit;
|
|
130
|
+
}
|
|
131
|
+
mandatory true;
|
|
132
|
+
}
|
|
133
|
+
leaf att_in {
|
|
134
|
+
type decimal64 {
|
|
135
|
+
fraction-digits 2;
|
|
136
|
+
}
|
|
137
|
+
units "dB";
|
|
138
|
+
mandatory true;
|
|
139
|
+
}
|
|
140
|
+
leaf con_in {
|
|
141
|
+
type decimal64 {
|
|
142
|
+
fraction-digits 2;
|
|
143
|
+
}
|
|
144
|
+
units "dB";
|
|
145
|
+
mandatory true;
|
|
146
|
+
}
|
|
147
|
+
leaf con_out {
|
|
148
|
+
type decimal64 {
|
|
149
|
+
fraction-digits 2;
|
|
150
|
+
}
|
|
151
|
+
units "dB";
|
|
152
|
+
mandatory true;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
grouping edfa-params {
|
|
157
|
+
container operational {
|
|
158
|
+
description
|
|
159
|
+
"Operational values for the Edfa ";
|
|
160
|
+
leaf gain_target {
|
|
161
|
+
type decimal64 {
|
|
162
|
+
fraction-digits 2;
|
|
163
|
+
}
|
|
164
|
+
units "dB";
|
|
165
|
+
mandatory true;
|
|
166
|
+
description
|
|
167
|
+
"gain target of the amplifier (before VOA and after att_in)";
|
|
168
|
+
}
|
|
169
|
+
leaf tilt_target {
|
|
170
|
+
type decimal64 {
|
|
171
|
+
fraction-digits 2;
|
|
172
|
+
}
|
|
173
|
+
mandatory true;
|
|
174
|
+
description
|
|
175
|
+
"..";
|
|
176
|
+
}
|
|
177
|
+
leaf out_voa {
|
|
178
|
+
type decimal64 {
|
|
179
|
+
fraction-digits 2;
|
|
180
|
+
}
|
|
181
|
+
units "dB";
|
|
182
|
+
mandatory true;
|
|
183
|
+
description
|
|
184
|
+
"..";
|
|
185
|
+
}
|
|
186
|
+
leaf delta_p {
|
|
187
|
+
type decimal64 {
|
|
188
|
+
fraction-digits 2;
|
|
189
|
+
}
|
|
190
|
+
units "dB";
|
|
191
|
+
mandatory true;
|
|
192
|
+
description
|
|
193
|
+
"per channel target output power delta with respect to power setting in SI";
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
grouping roadm-params {
|
|
199
|
+
leaf target_pch_out_db {
|
|
200
|
+
type decimal64 {
|
|
201
|
+
fraction-digits 2;
|
|
202
|
+
}
|
|
203
|
+
units "dB";
|
|
204
|
+
description
|
|
205
|
+
"..";
|
|
206
|
+
}
|
|
207
|
+
container restrictions {
|
|
208
|
+
leaf-list preamp_variety_list {
|
|
209
|
+
type string;
|
|
210
|
+
description
|
|
211
|
+
"List of authorized preamp type-variety";
|
|
212
|
+
}
|
|
213
|
+
leaf-list booster_variety_list {
|
|
214
|
+
type string;
|
|
215
|
+
description
|
|
216
|
+
"List of authorized booster type-variety";
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
grouping transceiver-params;
|
|
222
|
+
|
|
223
|
+
grouping fused-params{
|
|
224
|
+
leaf loss {
|
|
225
|
+
type decimal64 {
|
|
226
|
+
fraction-digits 2;
|
|
227
|
+
}
|
|
228
|
+
units "dB";
|
|
229
|
+
description
|
|
230
|
+
"Concentrated loss of the fused element";
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
grouping element-type-choice {
|
|
235
|
+
choice element-type {
|
|
236
|
+
case Edfa {
|
|
237
|
+
when "type = 'Edfa'";
|
|
238
|
+
uses edfa-params;
|
|
239
|
+
}
|
|
240
|
+
case FiberRoadm {
|
|
241
|
+
container params {
|
|
242
|
+
choice fiberroadmfused {
|
|
243
|
+
case Fiber {
|
|
244
|
+
when "type = 'Fiber'";
|
|
245
|
+
uses fiber-params;
|
|
246
|
+
}
|
|
247
|
+
case Roadm {
|
|
248
|
+
when "type = 'Roadm'";
|
|
249
|
+
uses roadm-params;
|
|
250
|
+
}
|
|
251
|
+
case Fused {
|
|
252
|
+
when "type = 'Fused'";
|
|
253
|
+
uses fused-params;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
case Transceiver {
|
|
259
|
+
when "type = 'Transceiver'";
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
grouping topo {
|
|
266
|
+
list elements {
|
|
267
|
+
key "uid";
|
|
268
|
+
leaf uid {
|
|
269
|
+
type string;
|
|
270
|
+
}
|
|
271
|
+
leaf type {
|
|
272
|
+
type identityref {
|
|
273
|
+
base type-element;
|
|
274
|
+
}
|
|
275
|
+
mandatory true;
|
|
276
|
+
}
|
|
277
|
+
leaf type_variety {
|
|
278
|
+
type string;
|
|
279
|
+
mandatory false;
|
|
280
|
+
}
|
|
281
|
+
container metadata {
|
|
282
|
+
uses location-attributes;
|
|
283
|
+
}
|
|
284
|
+
uses element-type-choice;
|
|
285
|
+
}
|
|
286
|
+
list connections {
|
|
287
|
+
config false;
|
|
288
|
+
leaf from_node {
|
|
289
|
+
type leafref {
|
|
290
|
+
path "../../elements/uid";
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
leaf to_node {
|
|
294
|
+
type leafref {
|
|
295
|
+
path "../../elements/uid";
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}
|