Hi,

On 2014年07月31日 17:54, Marc Bruyere wrote:
> Hi,
> 
> I am trying to add a couple of flows using ofctl_rest.py with curl like 
> that one :
> 
> curl -X POST -d '{"cookie": "1","dpid": 0x9b9de89a8ffbc388,"priority": 
> "23999","match": {"in_port": 
> "1"},"actions":[{"type":"OUTPUT","port":"1"}]}' 
> http://127.0.0.1:8080/stats/flowentry/add
> 
> I am not sure if the ofctl_rest is the right ryu app for that.

Yes, ofctl_rest.py provides you the REST API for Open Flow,
e.g. geting flows stats, adding a flow entry, and so on.

> I have tried to find more information in the doc without luck.

Please refer to the comments of the source code or GitHub History for usage.

Sample of SRC)
 :
# get the list of all switches
# GET /stats/switches
#
# get the desc stats of the switch
# GET /stats/desc/<dpid>
#
# get flows stats of the switch
# GET /stats/flow/<dpid>
 :

GitHub URL)
https://github.com/osrg/ryu/commits/master/ryu/app/ofctl_rest.py

> 
> Thx for your help
> 
> /mb
> 
> ------------------------------------------------------------------------------
> Infragistics Professional
> Build stunning WinForms apps today!
> Reboot your WinForms applications with our WinForms controls. 
> Build a bridge from your legacy apps to the future.
> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
> _______________________________________________
> Ryu-devel mailing list
> Ryu-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
> 

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to