Dear All,
I almost followed the same procedure as explained in the Ryu book for
Example of the operation of QoS by using Meter Table but I made a little
modification in the mininet topology file where I added the controller
address. However, the controller is not joining the switch. I am
attaching the screen shot of the controller terminal and mininet
topology file here.
I wonder what is the possible reason for it and how it can be solved.
Thanks
Regards
Arslan
from mininet.net import Mininet
from mininet.cli import CLI
from mininet.topo import Topo
from mininet.node import UserSwitch
from mininet.node import RemoteController
REMOTE_CONTROLLER_IP = "127.0.0.1"
class SliceableSwitch(UserSwitch):
def __init__(self, name, **kwargs):
UserSwitch.__init__(self, name, '', **kwargs)
class MyTopo(Topo):
def __init__( self ):
"Create custom topo."
# Initialize topology
Topo.__init__( self )
# Add hosts and switches
host01 = self.addHost('h1')
host02 = self.addHost('h2')
host03 = self.addHost('h3')
switch01 = self.addSwitch('s1')
switch02 = self.addSwitch('s2')
switch03 = self.addSwitch('s3')
# Add links
self.addLink(host01, switch01)
self.addLink(host02, switch02)
self.addLink(host03, switch03)
self.addLink(switch01, switch02)
self.addLink(switch01, switch03)
def run(net):
s1 = net.getNodeByName('s1')
s1.cmdPrint('dpctl unix:/tmp/s1 queue-mod 1 1 80')
s1.cmdPrint('dpctl unix:/tmp/s1 queue-mod 1 2 120')
s1.cmdPrint('dpctl unix:/tmp/s1 queue-mod 1 3 800')
def genericTest(topo):
#modified
net = Mininet(topo=topo, switch=SliceableSwitch, build=False)
#added controller
c0 = RemoteController( 'c0', ip='127.0.0.1', port=6633 )
net.addController(c0)
net.build()
net.start()
run(net)
CLI(net)
net.stop()
def main():
topo = MyTopo()
genericTest(topo)
if __name__ == '__main__':
main()
------------------------------------------------------------------------------
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