Skip to content

Commit

Permalink
Merge pull request #267 from Orange-OpenSource/capacity_planning-part2
Browse files Browse the repository at this point in the history
This brings in the concept of OMS (so far created implicitly based on the input topology), spectrum assignment, etc.
  • Loading branch information
jktjkt authored Jan 13, 2020
2 parents 8598e65 + 66d26f0 commit 0f10ac7
Show file tree
Hide file tree
Showing 18 changed files with 2,152 additions and 689 deletions.
8 changes: 8 additions & 0 deletions examples/meshTopologyExampleV2_services.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"destination": "trx Vannes_KBE",
"src-tp-id": "trx Lorient_KMA",
"dst-tp-id": "trx Vannes_KBE",
"bidirectional": false,
"path-constraints": {
"te-bandwidth": {
"technology": "flexi-grid",
Expand All @@ -30,6 +31,7 @@
"destination": "trx Vannes_KBE",
"src-tp-id": "trx Brest_KLA",
"dst-tp-id": "trx Vannes_KBE",
"bidirectional": false,
"path-constraints": {
"te-bandwidth": {
"technology": "flexi-grid",
Expand Down Expand Up @@ -94,6 +96,7 @@
"destination": "trx Rennes_STA",
"src-tp-id": "trx Lannion_CAS",
"dst-tp-id": "trx Rennes_STA",
"bidirectional": false,
"path-constraints": {
"te-bandwidth": {
"technology": "flexi-grid",
Expand All @@ -118,6 +121,7 @@
"destination": "trx Lannion_CAS",
"src-tp-id": "trx Rennes_STA",
"dst-tp-id": "trx Lannion_CAS",
"bidirectional": false,
"path-constraints": {
"te-bandwidth": {
"technology": "flexi-grid",
Expand All @@ -142,6 +146,7 @@
"destination": "trx Lannion_CAS",
"src-tp-id": "trx Rennes_STA",
"dst-tp-id": "trx Lannion_CAS",
"bidirectional": false,
"path-constraints": {
"te-bandwidth": {
"technology": "flexi-grid",
Expand All @@ -166,6 +171,7 @@
"destination": "trx Lorient_KMA",
"src-tp-id": "trx Lannion_CAS",
"dst-tp-id": "trx Lorient_KMA",
"bidirectional": false,
"path-constraints": {
"te-bandwidth": {
"technology": "flexi-grid",
Expand All @@ -190,6 +196,7 @@
"destination": "trx Lorient_KMA",
"src-tp-id": "trx Lannion_CAS",
"dst-tp-id": "trx Lorient_KMA",
"bidirectional": false,
"path-constraints": {
"te-bandwidth": {
"technology": "flexi-grid",
Expand All @@ -214,6 +221,7 @@
"destination": "trx Lorient_KMA",
"src-tp-id": "trx Lannion_CAS",
"dst-tp-id": "trx Lorient_KMA",
"bidirectional": false,
"path-constraints": {
"te-bandwidth": {
"technology": "flexi-grid",
Expand Down
438 changes: 285 additions & 153 deletions examples/path_requests_run.py

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions examples/transmission_main_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ def main(network, equipment, source, destination, sim_params, req=None):
params['trx_mode'] = ''
params['source'] = source.uid
params['destination'] = destination.uid
params['bidir'] = False
params['nodes_list'] = [destination.uid]
params['loose_list'] = ['strict']
params['format'] = ''
Expand Down
10 changes: 10 additions & 0 deletions gnpy/core/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,13 @@ class EquipmentConfigError(ConfigurationError):

class NetworkTopologyError(ConfigurationError):
'''Topology of user-provided network is wrong'''

class ServiceError(Exception):
'''Service of user-provided request is wrong'''

class DisjunctionError(ServiceError):
'''Disjunction of user-provided request can not be satisfied'''

class SpectrumError(Exception):
'''Spectrum errors of the program'''

Loading

0 comments on commit 0f10ac7

Please sign in to comment.