In general, OpenFlow supports this feature by the wildcards field of ofp_match. 
 
So if you're on the C++ side, you may just set bits in there.  There are 
constants that correlate to each of the match fields (e.g., match.wildcards = 
OFPFW_DL_DST would cause a switch to ignore the destination MAC address).  IP 
addresses are a bit trickier, because you can wildcard a suffix.

If you're doing this from Python, a lot of functions take an "attrs" 
dictionary to describe the flow.  This includes thigs like send_flow_command(), 
install_datapath_flow(), etc.  It has keys like "dl_dst" (or more properly, I 
think this is nox.lib.core.DL_DST).  These dictionaries are translated to an 
ofp_match structure by set_match(), and entries which are not present in the 
dictionary are automatically wildcarded.  So if you have some dictionary 
describing a flow in Python, you can just do "del myflow[core.DL_DST]", so 
there's no destination MAC to match on.

Hope that helps.  If you want more detail or a more specific answer,  feel free 
to give some more context about what exactly you are trying to do or post some 
code.

-- Murphy

On Thursday, May 05, 2011 08:32:42 AM karim torkmen wrote:
> Hi,
> Is there any function in nox that allows to select the fields to match
> in a flow table (e.g. order the switch to ignore the destination mac
> address).
> Thanks a lot.
> Karim
> _______________________________________________
> nox-dev mailing list
> [email protected]
> http://noxrepo.org/mailman/listinfo/nox-dev
_______________________________________________
nox-dev mailing list
[email protected]
http://noxrepo.org/mailman/listinfo/nox-dev

Reply via email to