Hi,that's exactly what I need!Thank you,Davide 

     Il Mercoledì 9 Settembre 2015 6:13, Yusuke Iwase <[email protected]> 
ha scritto:
   

 Hi,

On 2015年09月05日 00:32, Davide Sanvito wrote:
> Hi,
> I'm trying to use NXActionLearn in Ryu.
> 1. I've succesfully created a flow mod with a learn action with match and 
> load..
> With ovs-ofctl command I can also specify "load" actions to/from OVS 
> registers.
> For example
> ovs-ofctl add-flow s1 -O OpenFlow13 "table=2 actions=learn(table=1, 
> load:NXM_OF_IN_PORT[]->NXM_NX_REG0[0..15]) "
> 
> Does Ryu support OVS registers as source/destination fields in match/load?
> I'm interested in OpenFlow 1.3 but the only reference to registers I found is 
> in ofproto_v1_0.py
> 
> def nxm_nx_reg(idx):
>    return nxm_header(0x0001, idx, 4)
> 
> def nxm_nx_reg_w(idx):
>    return nxm_header_w(0x0001, idx, 4)
> 
> 2. How can I match on OVS registers value in a flow entry? What's the correct 
> keyword to be put in OFPFlowMod()?

How about using 'reg0' for the OFPMatch keyward?
  
https://github.com/osrg/ryu/blob/master/ryu/ofproto/ofproto_v1_3.py#L1209-L1217

e.g.) match = parser.OFPMatch(reg0=1)

Thanks,
Iwase

> 
> Thank you very much!
> Regards
> Davide Sanvito
> 
> 
> ------------------------------------------------------------------------------
> 
> 
> 
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
> 


  
------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to