mise a jour
This commit is contained in:
parent
b61b86b12c
commit
1bb974385e
1 changed files with 4 additions and 2 deletions
|
@ -13,12 +13,14 @@ net = Containernet(controller=Controller)
|
|||
info('*** Adding controller\n')
|
||||
net.addController('c0')
|
||||
info('*** Adding docker containers\n')
|
||||
d1 = net.addDocker('srv', ip='10.0.0.3', dimage="server:topo")
|
||||
d2 = net.addDocker('gwi', ip='10.0.0.6', dimage="server:topo")
|
||||
d1 = net.addDocker('d1', ip='10.0.0.3', dimage="server:topo")
|
||||
d2 = net.addDocker('d2', ip='10.0.0.6', dimage="server:topo")
|
||||
d3 = net.addDocker('d3', ip='10.0.0.9', dimage="server:topo")
|
||||
info('*** Adding switches\n')
|
||||
#s1 = net.addSwitch('s1')
|
||||
info('*** Creating link\n')
|
||||
net.addLink(d1, d2)
|
||||
net.addLink(d2, d3)
|
||||
#net.addLink(d1, s1)
|
||||
#net.addLink(s1, d2)
|
||||
info('*** Starting network\n')
|
Loading…
Reference in a new issue