source/destination nodes suggestion

fix bug in Fused span: adding ingress and egress directions
=> do not share the same NE between 2 directions

Signed-off-by: Jean-Luc Auge <jeanluc.auge@orange.com>
This commit is contained in:
Jean-Luc Auge
2018-04-24 12:23:22 +02:00
parent af90a6658e
commit be0c052e5e
8 changed files with 217 additions and 60 deletions

View File

@@ -79,6 +79,7 @@ class Transceiver(Node):
class Roadm(Node):
def __init__(self, config):
super().__init__(config)
#TODO read loss from json
self.loss = 20 #dB
self.passive = True
@@ -106,7 +107,8 @@ class Roadm(Node):
class Fused(Node):
def __init__(self, config):
super().__init__(config)
self.loss = 1 #dB
#TODO read loss from json
self.loss = 1 #dB
self.passive = True
def __repr__(self):