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

Reply via email to