Open Kilda Java Documentation
plan-d.py File Reference

Go to the source code of this file.

Classes

class  plan-d.KildaSwitch
 

Namespaces

 plan-d
 

Variables

string plan-d.gateway = '127.0.0.1'
 
 plan-d.netstat = subprocess.check_output(['netstat', '-rn']).split('\n')
 
 plan-d.net = Mininet( controller=RemoteController, switch=KildaSwitch, build=False )
 
 plan-d.c0 = net.addController( 'c0', ip=gateway, port=6653)
 
 plan-d.s1 = net.addSwitch( 's1' )
 
 plan-d.s2 = net.addSwitch( 's2' )
 
list plan-d.hosts1 = [ net.addHost( 'h%ds1' % n ) for n in ( 1, 2 ) ]
 
list plan-d.hosts2 = [ net.addHost( 'h%ds2' % n ) for n in ( 1, 2 ) ]
 
 plan-d.p
 
list plan-d.result = hosts1[0].cmd( 'ping -c1 %s' % (hosts1[1].IP()) )
 
list plan-d.lines = result.split("\n")