Hi Murphy,
thanks a lot for your answeer.
The small problem is that I am using python and the setup_route
("self.routing.setup_route(flow,route, inport, outport,FLOW_TIMEOUT, [],
False")) method of pyrouting which takes as an entry a flow not an
"attrs". My aim is to make the switch just decide on the source mac
address and to ignore the destination mac address.
Regards,
karim
On 05/06/2011 02:20 AM, Murphy McCauley wrote:
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
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev
_______________________________________________
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev