Fixing issue with metro.py
- Each LINC switch should have separate dict instance for annotation.
Change-Id: Iad541c0107fd36ef9439d135e9215e9dae27ee9e
diff --git a/tools/test/topos/metro.py b/tools/test/topos/metro.py
index 1979b10..5a73cb6 100755
--- a/tools/test/topos/metro.py
+++ b/tools/test/topos/metro.py
@@ -86,8 +86,8 @@
class OpticalDomain(Domain):
""" An emulated optical metro core. It is Domain 0. """
def build(self):
- oean = { "optical.regens": 0 }
for i in range (1,4):
+ oean = { "optical.regens": 0 }
self.addSwitch('OE%s' % i, dpid='0000ffffffffff0%s' % i, annotations=oean, cls=LINCSwitch)
an = { "optical.waves": 80, "optical.type": "WDM", "optical.kms": 1000, "durable": "true" }