On Fri, Sep 25, 2015 at 02:39:20AM +0000, Xiao Liang (xiaolia) wrote:
> I want to apply actions on all packets except those with a certain source MAC
> address. For example
> in_port=1, dl_src!=MAC_A, actions=output:2
> in_port=2, dl_src!=MAC_B, actions=output:1
> priority=0, action=drop
>
> Is there easy way to do this?
Ideally, you use high-priority flows to match the exceptions, and then
put the common case into a lower-priority flow, like this:
dl_src=A, priority=100, actions=...
dl_src=B, priority=100, actions=...
priority=0, actions=...
If you really can't do that, then you can use 48 flows to match all the
possible source MAC addresses that do not equal a given MAC, one for
each possible bit that could differ. It's a pretty bad solution because
it uses a lot of flows and has a high cost at runtime.
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss