Hi,

On 2015年12月18日 02:10, Stas Kozlov wrote:
> Hello Gents,
> 
> By default ofctl_rest.py is using "apply actions" which is optional in OF1.3 
> spec. How to define "write_actions" instruction for JSON in structure? 
> According ryu documentation, json should look like:
> ....
>    "table_id": 0,
>     "idle_timeout": 0,
>     "hard_timeout": 0,
>     "priority": 0,
>     "flags": 0,
>     "type":"WRITE_ACTIONS",
>     "actions":[
>         {
>             "type":"OUTPUT",
>             "port":1
>         }
>     ]
> ...
> After I launch the structure in postman, the OF packet has "apply_action" 
> instruction
> Type: OFPIT_APPLY_ACTIONS (4)

I think the above json has some invalid argument.
How to define "WRITE_ACTIONS" is described in the following commit.
https://github.com/osrg/ryu/commit/91af6a5ada5ea39ee98ad0d89d02146e3afc2d46

thanks,

> 
> version: ryu-manager 3.28
> 
> Thank you in advance
> 
> WBR,
>  Stas
> 
> 
> ------------------------------------------------------------------------------
> 
> 
> 
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
> 

------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to