mountprivatedirs is no longer needed
This commit is contained in:
+7
-1
@@ -27,7 +27,13 @@ def testHostWithPrivateDirs():
|
|||||||
privateDirs=privateDirs )
|
privateDirs=privateDirs )
|
||||||
net = Mininet( topo=topo, host=host )
|
net = Mininet( topo=topo, host=host )
|
||||||
net.start()
|
net.start()
|
||||||
info( 'Private Directories:', privateDirs, '\n' )
|
info( 'private Directories: [ ' )
|
||||||
|
for directory in privateDirs:
|
||||||
|
if isinstance( directory, tuple ):
|
||||||
|
info( '%s, ' %directory[0] )
|
||||||
|
else:
|
||||||
|
info( '%s, ' %directory )
|
||||||
|
info( ']\n' )
|
||||||
CLI( net )
|
CLI( net )
|
||||||
net.stop()
|
net.stop()
|
||||||
|
|
||||||
|
|||||||
@@ -749,13 +749,6 @@ class HostWithPrivateDirs( Host ):
|
|||||||
self.cmd( 'mount -n -t tmpfs tmpfs %s' %directory )
|
self.cmd( 'mount -n -t tmpfs tmpfs %s' %directory )
|
||||||
|
|
||||||
|
|
||||||
def mountTempDirs( self ):
|
|
||||||
"Mount tmpfs for each private directory"
|
|
||||||
for dir_ in self.privateDirs:
|
|
||||||
self.cmd( 'mkdir -p ' + dir_ )
|
|
||||||
self.cmd( 'mount -n -t tmpfs tmpfs %s' % dir_ )
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Some important things to note:
|
# Some important things to note:
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user