Re: [Ryu-devel] Utility to convert to JSON?

2016-02-08 Thread Minoru TAKAHASHI
Hi Alan, > Is there a technique/utility that is used to convert a Ryu class instance > into JSON and possibly back again? Does "Ryu class instance" mean "OpenFlow message class instance"? Then, As far as I know it is possible. The example is as follows: ins = parser.OFPFlowMod(datapath=dat

[Ryu-devel] Utility to convert to JSON?

2016-02-08 Thread Alan Deikman
Is there a technique/utility that is used to convert a Ryu class instance into JSON and possibly back again? For example an OFPFlowMod. I have been writing dual track: one in Python and one in JSON. It would be a big labor saver if there were some programmatic way to do this. ---

[Ryu-devel] [PATCH] protocols/bgp: Log socket creation error

2016-02-08 Thread Jason Kölker
Helpful to track down why the bgp server is stopping when the user running ryu does not have CAP_NET_BIND_SERVICE. Signed-off-by: Jason Kölker --- ryu/services/protocols/bgp/base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ryu/services/protocols/bgp/base.py b/ryu/s

Re: [Ryu-devel] Modifying an entry by adding one action

2016-02-08 Thread David Gabriel
Thanks Iwase I am thinking to get this entry with its information (the actions) then I delete it and add new one. So I am wondering how to get an entry basing a match using the destination address. Then I want to know if it is possible to get the corresponding actions, so I can create new entry by

Re: [Ryu-devel] write metadata and goto table for the same entry

2016-02-08 Thread David Gabriel
Thanks Shinpei, this is what I should use 0x; one for all bits. 2016-02-08 3:09 GMT+01:00 Shinpei Muraoka : > Hi, > > > May I keep the metadata mask value empty in this way ? > > > > inst = [parser.OFPInstructionWriteMetadata(metadata_value), > parser.OFPInstructionGotoTable(goto_table_id