Revision 891d8071

View differences:

examples/multiping.py
23 23
def startpings( host, targetips ):
24 24
    "Tell host to repeatedly ping targets"
25 25

  
26
    targetips.append( '10.0.0.200' )
27

  
28 26
    targetips = ' '.join( targetips )
29 27

  
30
    # BL: Not sure why loopback intf isn't up!
31
    host.cmd( 'ifconfig lo up' )
32

  
33 28
    # Simple ping loop
34 29
    cmd = ( 'while true; do '
35 30
            ' for ip in %s; do ' % targetips +
......
63 58
    # Start pings
64 59
    for subnet in subnets:
65 60
        ips = [ host.IP() for host in subnet ]
61
        #adding bogus to generate packet loss
62
        ips.append( '10.0.0.200' )
66 63
        for host in subnet:
67 64
            startpings( host, ips )
68 65

  

Also available in: Unified diff