added persistence option to HostWithPrivateDirs. also attached mount namespaces when mnexec -a is specified

This commit is contained in:
Cody Burkard
2014-06-19 15:08:26 -07:00
parent ebc1eae679
commit 6a81b6dfb3
3 changed files with 34 additions and 5 deletions
+3 -1
View File
@@ -20,7 +20,9 @@ from functools import partial
def testHostWithPrivateDirs():
"Test bind mounts"
topo = SingleSwitchTopo( 10 )
privateDirs = [ '/var/log', '/var/run' ]
privateDirs = [ ( '/var/log', '/onos/%(name)s/var/log' ),
( '/var/run', '/ovx/%(name)s/var/run' ),
'/mn' ]
host = partial( HostWithPrivateDirs,
privateDirs=privateDirs )
net = Mininet( topo=topo, host=host )