def testHostWithPrivateDirs():
 topo = SingleSwitchTopo(10)
 privateDirs = [('/var/log', '/tmp/%(name)s/var/log'), ('/var/run', '/tmp/%(name)s/var/run'), '/var/mn']
 host = partial(Host, privateDirs=privateDirs)
 net = Mininet(topo=topo, host=host)
 net.start()
 directories = [(directory[0] if isinstance(directory, tuple) else directory) for directory in privateDirs]
 info('Private Directories:', directories, '\n')
 CLI(net)
 net.stop()

def testHostWithPrivateDirs ( ) : topo = SingleSwitchTopo ( 10 ) privateDirs = [ ( '/var/log' , '/tmp/%(name)s/var/log' ) , ( '/var/run' , '/tmp/%(name)s/var/run' ) , '/var/mn' ] host = partial ( Host , privateDirs = privateDirs ) net = Mininet ( topo = topo , host = host ) net . start ( ) directories = [ ( directory [ 0 ] if isinstance ( directory , tuple ) else directory ) for directory in privateDirs ] info ( 'Private Directories:' , directories , '\n' ) CLI ( net ) net . stop ( )
test bind mounts .