Open Kilda Java Documentation
plan-d Namespace Reference

Classes

class  KildaSwitch
 

Variables

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

Variable Documentation

◆ c0

plan-d.c0 = net.addController( 'c0', ip=gateway, port=6653)

Definition at line 38 of file plan-d.py.

◆ gateway

plan-d.gateway = '127.0.0.1'

Definition at line 25 of file plan-d.py.

◆ hosts1

list plan-d.hosts1 = [ net.addHost( 'h%ds1' % n ) for n in ( 1, 2 ) ]

Definition at line 45 of file plan-d.py.

◆ hosts2

list plan-d.hosts2 = [ net.addHost( 'h%ds2' % n ) for n in ( 1, 2 ) ]

Definition at line 46 of file plan-d.py.

◆ lines

list plan-d.lines = result.split("\n")

Definition at line 73 of file plan-d.py.

◆ net

plan-d.net = Mininet( controller=RemoteController, switch=KildaSwitch, build=False )

Definition at line 35 of file plan-d.py.

◆ netstat

plan-d.netstat = subprocess.check_output(['netstat', '-rn']).split('\n')

Definition at line 26 of file plan-d.py.

◆ p

plan-d.p
Initial value:
1 = subprocess.Popen(["ovs-ofctl","-O","OpenFlow13","add-flow","s1",
2  "idle_timeout=0,priority=1000,in_port=1,actions=output:2"],
3  stdout=subprocess.PIPE)

Definition at line 64 of file plan-d.py.

◆ result

list plan-d.result = hosts1[0].cmd( 'ping -c1 %s' % (hosts1[1].IP()) )

Definition at line 72 of file plan-d.py.

◆ s1

plan-d.s1 = net.addSwitch( 's1' )

Definition at line 41 of file plan-d.py.

◆ s2

plan-d.s2 = net.addSwitch( 's2' )

Definition at line 42 of file plan-d.py.