def moveHost(host, oldSwitch, newSwitch, newPort=None):
 (hintf, sintf) = host.connectionsTo(oldSwitch)[0]
 oldSwitch.moveIntf(sintf, newSwitch, port=newPort)
 return (hintf, sintf)

def moveHost ( host , oldSwitch , newSwitch , newPort = None ) : ( hintf , sintf ) = host . connectionsTo ( oldSwitch ) [ 0 ] oldSwitch . moveIntf ( sintf , newSwitch , port = newPort ) return ( hintf , sintf )
move a host from old switch to new switch .