Revision 0a9358c9 mininet/net.py

View differences:

mininet/net.py
174 174
            sw = self.switch( name, listenPort=self.listenPort,
175 175
                defaultMAC=mac, defaultIP=ip, dp=self.dps,
176 176
                inNamespace=self.inNamespace )
177
        if not self.inNamespace:
177
        if not self.inNamespace and self.listenPort:
178 178
            self.listenPort += 1
179 179
        self.dps += 1
180 180
        self.switches.append( sw )

Also available in: Unified diff