Revision 2e3258d2 mininet/net.py

View differences:

mininet/net.py
373 373
            info( host.name + ' ' )
374 374
            intf = host.defaultIntf()
375 375
            if intf:
376
                host.configDefault()
376
                if intf.prefixLen:
377
                    host.configDefault(ip=intf.ip+'/'+intf.prefixLen,mac=intf.mac)
378
                else:
379
                    if intf.ip :
380
                        host.configDefault(ip=intf.ip,mac=intf.mac)
381
                    else:
382
                        host.configDefault()
377 383
            else:
378 384
                # Don't configure nonexistent intf
379 385
                host.configDefault( ip=None, mac=None )

Also available in: Unified diff