Committed by
Gerrit Code Review
Fixing issue with metro.py
- Each LINC switch should have separate dict instance for annotation. Change-Id: Iad541c0107fd36ef9439d135e9215e9dae27ee9e
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -86,8 +86,8 @@ class Domain(object): | ... | @@ -86,8 +86,8 @@ class Domain(object): |
86 | class OpticalDomain(Domain): | 86 | class OpticalDomain(Domain): |
87 | """ An emulated optical metro core. It is Domain 0. """ | 87 | """ An emulated optical metro core. It is Domain 0. """ |
88 | def build(self): | 88 | def build(self): |
89 | - oean = { "optical.regens": 0 } | ||
90 | for i in range (1,4): | 89 | for i in range (1,4): |
90 | + oean = { "optical.regens": 0 } | ||
91 | self.addSwitch('OE%s' % i, dpid='0000ffffffffff0%s' % i, annotations=oean, cls=LINCSwitch) | 91 | self.addSwitch('OE%s' % i, dpid='0000ffffffffff0%s' % i, annotations=oean, cls=LINCSwitch) |
92 | 92 | ||
93 | an = { "optical.waves": 80, "optical.type": "WDM", "optical.kms": 1000, "durable": "true" } | 93 | an = { "optical.waves": 80, "optical.type": "WDM", "optical.kms": 1000, "durable": "true" } | ... | ... |
-
Please register or login to post a comment