HIGUCHI Yuta
Committed by Gerrit Code Review

Fixing issue with metro.py

- Each LINC switch should have separate dict instance for annotation.

Change-Id: Iad541c0107fd36ef9439d135e9215e9dae27ee9e
......@@ -86,8 +86,8 @@ class Domain(object):
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" }
......