Hi, Nicholas

I launch ryu-manager ryu/app/simple_switch_13.py ryu/app/ofctl_rest.py in another new terminal
It is not a problem. It's all right if you can run your application in somewhere.

However...
OVS' version: 2.0.2.
You use an older version of OVS, almost 3 years ago.
And I succeeded to reproduce your situation with OVS 2.0.2.
(I think this version does not comply completely with OpenFlow1.3.)

Please use the latest version of OVS.
It should fix your problem.


Thanks,
Fujimoto


On 2017年08月03日 17:41, Nicholas Brasini wrote:

Hi, Fujimoto.


First of all, I don't go like you for 3. run application. I launch ryu-manager ryu/app/simple_switch_13.py ryu/app/ofctl_rest.py in another new terminal, not in C0 (because error: Traceback (most recent call last):

  File "/usr/local/bin/ryu-manager", line 9, in <module>

    load_entry_point('ryu==4.15', 'console_scripts', 'ryu-manager')()

File "/usr/local/lib/python2.7/dist-packages/ryu/cmd/manager.py", line 98, in main

    app_mgr.load_apps(app_lists)

File "/usr/local/lib/python2.7/dist-packages/ryu/base/app_manager.py", line 415, in load_apps

    cls = self.load_app(app_cls_name)

File "/usr/local/lib/python2.7/dist-packages/ryu/base/app_manager.py", line 392, in load_app

    mod = utils.import_module(name)

File "/usr/local/lib/python2.7/dist-packages/ryu/utils.py", line 110, in import_module

    return importlib.import_module(modname)

File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module

    __import__(name)

ImportError: Import by filename is not supported.).




My Ryu's version: 4.15, OVS' version: 2.0.2.


Nicholas



------------------------------------------------------------------------
*Da:* Fujimoto Satoshi <satoshi.fujimo...@gmail.com>
*Inviato:* giovedì 3 agosto 2017 10:00
*A:* cola...@hotmail.it; ryu-devel@lists.sourceforge.net
*Oggetto:* Re: [Ryu-devel] Bug REST Ryu Delete all flow entry
Hi, Nicholas

Umm.... That's strange. I couldn't reproduce your situation with my environment.

I took the following step.
1.  run mininet
$ sudo mn --topo single,2 --mac --switch ovsk --controller remote -x
2. set OpenFlow version to s1
  s1> ovs-vsctl set Bridge s1 protocols=OpenFlow13
3. run application
    c0> ryu-manager ryu/app/simple_switch_13.py ryu/app/ofctl_rest.py
4. send ping
    mininet> h1 ping h2
5. get flow stats
        c0> curl -X GET http://localhost:8080/stats/flow/1
        (I got "OUTPUT:CONTROLLER", "OUTPUT:1", "OUTPUT:2")
6. clear flows
        c0> curl -X DELETE http://localhost:8080/stats/flowentry/clear/1
7. send ping again
    mininet> h1 ping h2
            (the ping is not reachable at this time)
8. get flow stats
        c0> curl -X GET http://localhost:8080/stats/flow/1
        (I got no flows)

It may be that you use older version of Ryu or OVS, could you confirm it?
Please hit the following command for Ryu and OVS.

$ ryu-manager --version
   ryu-manager 4.16

$ovs-ofctl -V
  ovs-ofctl (Open vSwitch) 2.7.90

Thanks,
Fujimoto

On 2017年08月03日 16:05, Nicholas Brasini wrote:
Hi Fujimoto! I run ofctl and simple_switch_13.py. I would like to use OpenFlow 1.3 but if it isn't possible...thanks!

Nicholas

Inviato da iPhone

Il giorno 03/ago/2017, alle ore 04:21, "Fujimoto Satoshi" <satoshi.fujimo...@gmail.com <mailto:satoshi.fujimo...@gmail.com>> ha scritto:

Hi, Nicholas

I think you may use simple_switch_xx.py for OpenFlow < 1.3.
In OpenFlow < 1.3, the packet which is not matched to any flows will be sent as Packet-In (OUTPUT:CONTROLLER). It may be that the controller installs OUTPUT:1 and OUTPUT:2 in Packet-In handler.

In any case, I would like to know what applications you ran, could you let me know?

Thanks,
Fujimoto


On 2017年08月03日 00:23, Nicholas Brasini wrote:

Hi guys! In my web-app with REST call Ryu, I have found a possible bug. When I launch url -X DELETE http://localhost:8080/stats/flowentry/clear/1 to delete every flow in switch 1, the OUTPUT:CONTROLLER (flow of controller Ryu) deleted with OUTPUT:1 and OUTPUT:2. But if I launch h1 ping h2 in terminal, if I launch http://localhost:8080/stats/switches <http://localhost:8080/stats/switches/clear/1> I don't see OUTPUT:CONTROLLER flow but only OUTPUT:1 and OUTPUT:2. Why?? Thanks, Nicholas.




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites,Slashdot.org <http://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



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