def moveIntfNoRetry(intf, dstNode, printError=False):
 intf = str(intf)
 cmd = ('ip link set %s netns %s' % (intf, dstNode.pid))
 cmdOutput = quietRun(cmd)
 if cmdOutput:
  if printError:
   error((((('*** Error: moveIntf: ' + intf) + ' not successfully moved to ') + dstNode.name) + ':\n'), cmdOutput)
  return False
 return True

def moveIntfNoRetry ( intf , dstNode , printError = False ) : intf = str ( intf ) cmd = ( 'ip link set %s netns %s' % ( intf , dstNode . pid ) ) cmdOutput = quietRun ( cmd ) if cmdOutput : if printError : error ( ( ( ( ( '*** Error: moveIntf: ' + intf ) + ' not successfully moved to ' ) + dstNode . name ) + ':\n' ) , cmdOutput ) return False return True
move interface to node .