Committed by
Gerrit Code Review
Disable local port on CPqD switches so we don't have phantom links between LINC-OE and CPqD.
ONOS-3425 Change-Id: Ife6aca095140c4e3d147aff6f82536c062463a8a
Showing
1 changed file
with
3 additions
and
3 deletions
... | @@ -118,16 +118,16 @@ class FabricDomain(Domain): | ... | @@ -118,16 +118,16 @@ class FabricDomain(Domain): |
118 | 118 | ||
119 | # create n spine switches | 119 | # create n spine switches |
120 | for sw in range(n): | 120 | for sw in range(n): |
121 | - l_nsw.append(self.addSwitch('swn%s%s' % (self.getId(), sw+1), cls=UserSwitch)) | 121 | + l_nsw.append(self.addSwitch('swn%s%s' % (self.getId(), sw+1), cls=UserSwitch, dpopts='--no-local-port')) |
122 | 122 | ||
123 | # create connection point to optical core (a leaf switch) | 123 | # create connection point to optical core (a leaf switch) |
124 | - tsw = self.addSwitch('swm%s01' % self.getId(), cls=UserSwitch) | 124 | + tsw = self.addSwitch('swm%s01' % self.getId(), cls=UserSwitch, dpopts='--no-local-port') |
125 | self.addTether(tsw, 'sw000%s' % self.getId(), '0000ffffffff000%s' % self.getId()) | 125 | self.addTether(tsw, 'sw000%s' % self.getId(), '0000ffffffff000%s' % self.getId()) |
126 | l_msw.append(tsw) | 126 | l_msw.append(tsw) |
127 | 127 | ||
128 | # attach f hosts to last m-1 leaves | 128 | # attach f hosts to last m-1 leaves |
129 | for sw in range(1, m): | 129 | for sw in range(1, m): |
130 | - msw = self.addSwitch('swm%s0%s' % (self.getId(), sw+1), cls=UserSwitch) | 130 | + msw = self.addSwitch('swm%s0%s' % (self.getId(), sw+1), cls=UserSwitch, dpopts='--no-local-port') |
131 | l_msw.append(msw) | 131 | l_msw.append(msw) |
132 | for h in range(f): | 132 | for h in range(f): |
133 | host = self.addHost('h%s%s' % (self.getId(), sw * f+h+1), cls=IpHost, | 133 | host = self.addHost('h%s%s' % (self.getId(), sw * f+h+1), cls=IpHost, | ... | ... |
-
Please register or login to post a comment