'Create Mininet object.
topo: Topo (topology) object or None
switch: default Switch class
host: default Host class/constructor
controller: default Controller class/constructor
link: default Link class/constructor
intf: default Intf class/constructor
ipBase: base IP address for hosts,
build: build now from topo?
xterms: if build now, spawn xterms?
cleanup: if build now, cleanup before creating?
inNamespace: spawn switches and controller in net namespaces?
autoSetMacs: set MAC addrs automatically like IP addresses?
autoStaticArp: set all-pairs static MAC addrs?
autoPinCpus: pin hosts to (real) cores (requires CPULimitedHost)?
listenPort: base listening port to open; will be incremented for
each additional switch in the net if inNamespace=False'

def __init__(self, topo=None, switch=OVSKernelSwitch, host=Host, controller=DefaultController, link=Link, intf=Intf, build=True, xterms=False, cleanup=False, ipBase='10.0.0.0/8', inNamespace=False, autoSetMacs=False, autoStaticArp=False, autoPinCpus=False, listenPort=None, waitConnected=False):

    self.topo = topo
    self.switch = switch
    self.host = host
    self.controller = controller
    self.link = link
    self.intf = intf
    self.ipBase = ipBase
    (self.ipBaseNum, self.prefixLen) = netParse(self.ipBase)
    hostIP = ((4294967295 >> self.prefixLen) & self.ipBaseNum)
    self.nextIP = (hostIP if (hostIP > 0) else 1)
    self.inNamespace = inNamespace
    self.xterms = xterms
    self.cleanup = cleanup
    self.autoSetMacs = autoSetMacs
    self.autoStaticArp = autoStaticArp
    self.autoPinCpus = autoPinCpus
    self.numCores = numCores()
    self.nextCore = 0
    self.listenPort = listenPort
    self.waitConn = waitConnected
    self.hosts = []
    self.switches = []
    self.controllers = []
    self.links = []
    self.nameToNode = {}
    self.terms = []
    Mininet.init()
    self.built = False
    if (topo and build):
        self.build()
