On Wed, Jan 22, 2014 at 12:13:29PM +0900, FUJITA Tomonori wrote:
> On Wed, 22 Jan 2014 10:59:48 +0900
> Simon Horman <[email protected]> wrote:
> 
> > Hi Fujita-san,
> > 
> > I have a question about the desired JSON representation of
> > OF1.4 OFPMatch.
> > 
> > Currently the code serialises an OFPMatch as:
> > 
> >    "OFPMatch": {
> >       "oxm_fields": {
> >          "arp_op": 1,
> >          ...
> >       }
> >    }
> > 
> > But the parser fails, complaining that "oxm_fields" is an unknown field 
> > name.
> > 
> > However, I wonder if the desired format is the same as OF1.3:
> > 
> >    "OFPMatch": {
> >       "length": 329, 
> >       "oxm_fields": [
> >          {
> >             "OXMTlv": {
> >                "field": "in_port", 
> >                "mask": null, 
> >                "value": 84281096
> >             }
> >          }, 
> >          ...
> >       }
> >    }
> 
> Yes, please. I'm too lazy to copy to_jsondict and from_jsondict from
> of1.3 code. The same format is desired, of course.

Thanks. I have done that, omitting the compat code, and it seems to be
working well now. I will submit a patch along with other OF1.4 changes.

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to