'Build network based on our topology.'

def build(self):

    dpctl = None
    if (len(self.appPrefs['dpctl']) > 0):
        dpctl = int(self.appPrefs['dpctl'])
    net = Mininet(topo=None, listenPort=dpctl, build=False, ipBase=self.appPrefs['ipBase'])
    self.buildNodes(net)
    self.buildLinks(net)
    net.build()
    return net
