Hi Arslan,

Oops, sorry, I didn't answer your question.


#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()

On your script, controller does not seem to be added as expected.
I've not yet investigated why though.
To set the controller address, please add "ip" (and optionally "port") argument 
to
"net.addController()" method on my script.

e.g.)
    net.addController('c0', ip='127.0.0.1', port=6633)


Thanks,
Iwase

On 2017年10月25日 11:17, Iwase Yusuke wrote:
Hi Arslan,

Sorry, the script on Ryu-Book does not create the topology correctly...
(Some options seems to be missing.)

Could you try the following script?

==== qos_sample_topology.py ====
#!/usr/bin/env python

from mininet.cli import CLI
from mininet.net import Mininet
from mininet.node import UserSwitch
from mininet.node import RemoteController
from mininet.link import TCLink
from mininet.log import setLogLevel


def main():
     net = Mininet(controller=RemoteController, switch=UserSwitch, link=TCLink)

     net.addController('c0')

     s1 = net.addSwitch('s1', dpopts='')
     s2 = net.addSwitch('s2', dpopts='')
     s3 = net.addSwitch('s3', dpopts='')

     h1 = net.addHost('h1')
     h2 = net.addHost('h2')
     h3 = net.addHost('h3')

     net.addLink(s1, h1, bw=1)
     net.addLink(s2, h2, bw=1)
     net.addLink(s3, h3, bw=1)

     net.addLink(s1, s2, bw=1)
     net.addLink(s1, s3, bw=1)

     net.start()

     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')

     CLI(net)
     net.stop()


if '__main__' == __name__:
     setLogLevel('info')
     main()
================================

With the above script, the modifications of ofsoftswitch13's source codes 
(described on Ryu-Book)
are not needed.

Thanks,
Iwase

On 2017年10月24日 18:28, Arslan wrote:
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



------------------------------------------------------------------------------
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
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel


------------------------------------------------------------------------------
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
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to