Excellent, it works!! Now, I have another question. If I want launch a html page in localhost which prints the Open Flow traffic, how can I do? For example, I start Mamp PRO, I go to localhost:8080/sniffer.html and I press a button. Now, I want see, for example, the same that I see if I digit 192.168.56.101:8080/stats/switches. Is it possible?
________________________________
Da: Iwase Yusuke <***@gmail.com>
Inviato: venerdì 14 luglio 2017 02:33
A: ***@hotmail.it
Cc: ryu-***@lists.sourceforge.net
Oggetto: Re: [Ryu-devel] [Ryu-server] 127.0.0.1/stats/switches doesn't work!
Hi,
On 2017幎07æ13æ¥ 22:31, Nicholas Brasini wrote:
> Hi guys,
>
>
> today I started Mininet with command:
>
>
> sudo mn --topo single,3 --mac --controller remote --switch ovsk,protocols=OpenFlow13
>
>
> and Ryu Controller with
>
>
> ryu-manager --verbose ryu/app/simple_switch_13.py
>
>
> and ping from H1 to H2 works correctly. If I want utilize Ryu's Rest API like /stats/switches
> or /stats/flow/<switchID>, how can I do??
I guess "Ryu's Rest API" means the APIs on the following page, right?
http://ryu.readthedocs.io/en/latest/app/ofctl_rest.html
ryu.app.ofctl_rest â Ryu 4.15 documentation - Read the Docs<http://ryu.readthedocs.io/en/latest/app/ofctl_rest.html>
ryu.readthedocs.io
ryu.app.ofctl_rest ¶ ryu.app.ofctl_rest provides REST APIs for retrieving the switch stats and Updating the switch stats. This application helps you debug your ...
Please note that these APIs are provided by "ryu/app/ofctl_rest.py" which is just a "sample"
application of Ryu.
And you need to run "ryu/app/ofctl_rest.py" with "ryu/app/simple_switch_13.py".
Thanks,
Iwase
>
> I write in URL bar 127.0.0.1/stats/switches but the result is: Not Found.
>
>
> Can you help me?
>
>
>
> Thanks, Nicholas
>
>
>
> ------------------------------------------------------------------------------
> 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-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>