Flow MAC address mask ignored

asked 2014-10-15 06:03:04 -0800

joakim gravatar image

updated 2014-10-15 06:05:51 -0800

I'm using distributions-base-0.1.1-osgipackage and two switches running Open vSwitch 2.0. I'm trying through a OSGI bundle create flows that match a MAC address with a mask. The problem is that when i look into the switches (ovs-ofctl dump-flows br0) the mask is not present.

The code is:

    match = new Match();
    match.setField(MatchType.DL_TYPE, (short)0x1337);
    match.setField(MatchType.DL_SRC, aMac, mask);
    match.setField(MatchType.DL_DST, bMac);
    match.setField(MatchType.IN_PORT, connector);

    flow = new Flow(match, new ArrayList<Action>());
    flow.addAction(new Controller());
    flow.setPriority((short)(basePriortity + 1));
    flow.setHardTimeout(timeout);

    flowProgrammer.addFlow(node, flow);
edit retag flag offensive close merge delete