Revision 748e35d5 examples/bigTreePing64.py

View differences:

examples/bigTreePing64.py
1 1
#!/usr/bin/python
2 2

  
3
"""Create a tree network of depth 4 and fanout 2, and 
4
   test connectivity using pingTest."""
5
   
3 6
from mininet import init, TreeNet, iperfTest
4 7

  
5 8
def bigTreePing64():
6
   """Create a tree network of depth 4 and fanout 2, and 
7
      test connectivity using pingTest."""
8

  
9 9
   results = {}
10
   
10

  
11 11
   print "*** Testing Mininet with kernel and user datapath"
12 12
   
13 13
   for datapath in [ 'kernel', 'user' ]:
14 14
      k = datapath == 'kernel'
15 15
      results[ datapath ] = []
16 16
      for switchCount in range( 1, 4 ):
17
         print "*** Creating Linear Network of size", switchCount
18
         network = TreeNet( depth=4, fanout=2, kernel=k )
19
         testResult = network.run( iperfTest )
17
         network = TreeNet( depth=4, fanout=4, kernel=k )
18
         testResult = network.run( pingTest )
20 19
         results[ datapath ] += testResult
21 20
         
22 21
   print "*** Test results:", results

Also available in: Unified diff