Skip to content
Snippets Groups Projects
bigTreePing64.py 682 B
Newer Older
#!/usr/bin/python

Bob Lantz's avatar
Bob Lantz committed
"""Create a tree network of depth 4 and fanout 2, and 
   test connectivity using pingTest."""
   
Bob Lantz's avatar
Bob Lantz committed
from mininet import init, TreeNet, pingTestVerbose

def bigTreePing64():
   results = {}
Bob Lantz's avatar
Bob Lantz committed

   print "*** Testing Mininet with kernel and user datapath"
   
   for datapath in [ 'kernel', 'user' ]:
      k = datapath == 'kernel'
      results[ datapath ] = []
      for switchCount in range( 1, 4 ):
Bob Lantz's avatar
Bob Lantz committed
         network = TreeNet( depth=3, fanout=4, kernel=k )
         testResult = network.run( pingTestVerbose )
         results[ datapath ] += testResult
         
   print "*** Test results:", results
      
if __name__ == '__main__':
   init()
Bob Lantz's avatar
Bob Lantz committed
   bigTreePing64()