Hi Sergio,
On 2015年12月08日 14:42, Sergio Andrés Rivera Polanco wrote:
> It does. Thank you for your reply. I will do it that way. However, I think
> that hard-coding the port value is a bit odd, wouldn't it be better something
> like the following instead?
>
> $ curl -X POST -d '{
> "dpid": 1,
> "match":{
> "in_port": 1
> },
> "actions":[
> {
> "port": "CONTROLLER",
> "type": "OUTPUT"
> }
> ]
> }' http://localhost:8080/stats/flowentry/add
>
> It is just a suggestion for future :)
It sounds great!
Could you try to implement it?
or, I will try it on next release.
Thanks,
Iwase
>
> Sergio
>
> On Tue, Dec 8, 2015 at 12:26 AM, Yusuke Iwase <[email protected]
> <mailto:[email protected]>> wrote:
>
> Hi Sergio,
>
>
> On 2015年12月08日 12:11, Sergio Andrés Rivera Polanco wrote:
> > Hi, I am trying out Ryu's REST API following the online documentation
> found at http://ryu-zhdoc.readthedocs.org/en/latest/app/ofctl_rest.html
> >
> > Even though the type of actions and match fields is properly described,
> I didn't find the format for actions like "Send to Controller", "Flood",
> "Local", "Ingress-Port" that is present in other controllers. Is there any
> place where I could find this information?
>
> I think "Send to Controller", "Flood", "Local" and "Ingress-Port" means
> the reserved values of "Reserved Ports" in OpenFlow Spec, right?
>
> /* Port numbering. Physical ports are numbered starting from 1. */
> enum ofp_port {
> /* Maximum number of physical switch ports. */
> OFPP_MAX = 0xff00,
> /* Fake output "ports". */
> OFPP_IN_PORT = 0xfff8, /* Send the packet out the input port. This
> virtual port must be explicitly used
> in order to send back out of the input
> port. */
> OFPP_TABLE = 0xfff9, /* Perform actions in flow table.
> NB: This can only be the destination
> port for packet-out messages. */
> OFPP_NORMAL = 0xfffa, /* Process with normal L2/L3 switching. */
> OFPP_FLOOD = 0xfffb, /* All physical ports except input port and
> those disabled by STP. */
> OFPP_ALL = 0xfffc, /* All physical ports except input port. */
> OFPP_CONTROLLER = 0xfffd, /* Send to controller. */
> OFPP_LOCAL = 0xfffe, /* Local openflow "port". */
> OFPP_NONE = 0xffff /* Not associated with a physical port. */
> };
>
> You can use these values in ofctl_rest.py as followings.
>
> $ curl -X POST -d '{
> "dpid": 1,
> "match":{
> "in_port": 1
> },
> "actions":[
> {
> "port": 0xfffffffd, # Send to controller.
> "type": "OUTPUT"
> }
> ]
> }' http://localhost:8080/stats/flowentry/add
>
>
> Thanks,
> Iwase
>
> >
> >
> > Thanks
> >
> > Sergio
> >
> >
> >
> ------------------------------------------------------------------------------
> > Go from Idea to Many App Stores Faster with Intel(R) XDK
> > Give your users amazing mobile app experiences with Intel(R) XDK.
> > Use one codebase in this all-in-one HTML5 development environment.
> > Design, debug & build mobile apps & 2D/3D high-impact games for
> multiple OSs.
> > http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
> >
> >
> >
> > _______________________________________________
> > Ryu-devel mailing list
> > [email protected] <mailto:[email protected]>
> > https://lists.sourceforge.net/lists/listinfo/ryu-devel
> >
>
>
>
>
> ------------------------------------------------------------------------------
> Go from Idea to Many App Stores Faster with Intel(R) XDK
> Give your users amazing mobile app experiences with Intel(R) XDK.
> Use one codebase in this all-in-one HTML5 development environment.
> Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
> http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
>
>
>
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel