Revision 0a9358c9 bin/mn

View differences:

bin/mn
179 179
        opts.add_option( '--listenport', type='int', default=6634,
180 180
                        help='[base port for passive switch listening'
181 181
                        ' controller]' )
182
        opts.add_option( '--nolistenport', action='store_true',
183
                        default=False, help="don't use passive listening port")
182 184
        opts.add_option( '--pre', type='string', default=None,
183 185
                        help='[CLI script to run before tests]' )
184 186
        opts.add_option( '--post', type='string', default=None,
......
225 227
        xterms = self.options.xterms
226 228
        mac = self.options.mac
227 229
        arp = self.options.arp
228
        listenPort = self.options.listenport
230
        listenPort = None
231
        if not self.options.nolistenport:
232
            listenPort = self.options.listenport
229 233
        mn = Mininet( topo, switch, host, controller, controllerParams,
230 234
                     inNamespace=inNamespace,
231 235
                     xterms=xterms, autoSetMacs=mac,

Also available in: Unified diff