Hi, On 2014年11月21日 23:05, Clément Rault wrote: > Hi, > > I'm trying to implement in-band mechanisms and therefore I need to > push the proper tables. At first I thought about programming a ryu > application but since I just wanna push tables it's not the best way > to do I guess? I discovered that it's possible to push tables using > curl and it looks better for what I'm trying to achieve. > > But my problem is that there is really not much about the curl in the > documentation. Where could I find more information?
Did you check the ofctl_rest page in the Ryu documentation? This page may be helpful for you. http://ryu.readthedocs.org/en/latest/app/ofctl_rest.html > > I wanna install group tables of the fast failover type and be able to > decide on the forwarding port depending on the vlan id (with masks). > Do you think that it's possible with curl? I think it's possible. How about this command examples? # Add group entry $ curl -X POST -d '{ "dpid": 1, "type": "FF", "group_id": 1, "buckets": [ { "watch_port": 1, "actions": [ { "type": "OUTPUT", "port": 1 } ] } ] }' http://localhost:8080/stats/groupentry/add # Check group entry $ curl -X GET http://localhost:8080/stats/groupdesc/1 # Add flow entry $ curl -X POST -d '{ "dpid": 1, "match":{ "vlan_vid": 5 }, "actions":[ { "type":"GROUP", "group_id": 1 } ] }' http://localhost:8080/stats/flowentry/add # Check flow entry $ curl -X GET http://localhost:8080/stats/flow/1 > > Best, > Clément > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > _______________________________________________ > Ryu-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ryu-devel > ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
