Hello all, I was trying to create a LACP topology in RYU, to test some resilience situations in the protocol over SND, but my script seams not work in this topology:
h1-eth0----------eth1-s1-eth3----------eth1-s3-eth3---------eth0-h4
\-eth1----------eth2-/ \-eth4----------eth2-/ \-eth4----------eth1-/
I have create this topology in mininet:
#!/usr/bin/env python
# henceforth topology
from mininet.cli import CLI
from mininet.net import Mininet
from mininet.node import RemoteController
from mininet.term import makeTerm
if '__main__' == __name__:
net = Mininet(controller=RemoteController)
c0 = net.addController('c0', port=6633)
s1 = net.addSwitch('s1')
s2 = net.addSwitch('s2')
s3 = net.addSwitch('s3')
h1 = net.addHost('h1')
h4 = net.addHost('h4', mac='00:00:00:00:00:24')
net.addLink(s1, h1)
net.addLink(s1, h1)
net.addLink(s1, s3)
net.addLink(s1, s3)
net.addLink(s3, h4)
net.addLink(s3, h4)
net.build()
c0.start()
s1.start([c0])
s2.start([c0])
s3.start([c0])
net.startTerms()
CLI(net)
net.stop()
And i used the RYU script simple_switch_lacp_13, where i have changed the
follow lines:
def __init__(self, *args, **kwargs):
super(SimpleSwitchLacp13, self).__init__(*args, **kwargs)
self.mac_to_port = {}
self._lacp = kwargs['lacplib']
self._lacp.add(
dpid=str_to_dpid('0000000000000001'), ports=[1, 2])
self._lacp.add(
dpid=str_to_dpid('0000000000000001'), ports=[3, 4])### Other LACP
Channel Between S1 and S3
self._lacp.add(
dpid=str_to_dpid('0000000000000003'), ports=[1, 2])### Other LACP
Channel Between S1 and S3
self._lacp.add(
dpid=str_to_dpid('0000000000000003'), ports=[3, 4])### Other LACP
Channel Between S3 and H4
When I try to use this topology, I received in wireshark LACP packets in the
ports Directly connected to the Hosts, but I Can’t see the LACP packets over
the ports between S1 and S3 , and the simple ping test between H1 and H3 didn`t
work. May you help me to solve the problem? Am I doing something wrong in my
code?
Best regards,
Thyago Monteiro
signature.asc
Description: Message signed with OpenPGP using GPGMail
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
