def ensureRoot():
 if (os.getuid() != 0):
  print '*** Mininet must run as root.'
  exit(1)
 return

def ensureRoot ( ) : if ( os . getuid ( ) != 0 ) : print '*** Mininet must run as root.' exit ( 1 ) return
ensure that we are running as root .