I have added an OF Experimenter field to Ryu that defines an OXM object.  I 
want to create an OFPMatch() object with that field referenced multiple times.  
So for example if my object is named “fieldA” then you might have:

   parser = datapath.ofproto_parser
   match = parser.OFPMatch(eth_type = 0x800, fieldA = 100, fieldA = 200, fieldA 
= 99)

This of course doesn’t work because Python parameters follow the rules of a 
dict object where a key is always unique. Alternatively I could use the syntax:

  match = parser.OFPMatch(eth_type = 0x800, fieldA = [100, 200, 99 ])

but Ryu doesn’t seem prepared to handle that either.   Can anyone suggest a way 
of implementing this?

Note: although not exactly condoned by the OF specification, the multiple 
instances of an OXM type in a match term is allowed by Section 7.2.3.6 of the 
OF 1.5 specification.  

----------------------------
Alan Deikman
ZNYX Networks, Inc.





------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to