Sorry, this got caught in my spam filter (no idea why).

On Sep 13, 2013, at 8:05 AM, Hui Kang <[email protected]> wrote:

> To give your some more information.
> 
> When I set match.dl_type = 0x0806 (ethertype ARP), the POX controller returns 
> the following error message
> 
> ERROR:openflow.of_01:[00-1c-73-2b-f6-a6 2] OpenFlow Error:
> [00-1c-73-2b-f6-a6 2] Error: header: 
> [00-1c-73-2b-f6-a6 2] Error:   version: 1
> [00-1c-73-2b-f6-a6 2] Error:   type:    1 (OFPT_ERROR)
> [00-1c-73-2b-f6-a6 2] Error:   length:  12
> [00-1c-73-2b-f6-a6 2] Error:   xid:     12
> [00-1c-73-2b-f6-a6 2] Error: type: OFPET_FLOW_MOD_FAILED (3)
> [00-1c-73-2b-f6-a6 2] Error: code: OFPFMFC_UNSUPPORTED (5)

This error means the actions aren't supported.  If you're just using the single 
output action... I don't know... is the output port under OpenFlow control?

> Actually, I found that all other values for dl_type will return this error 
> message.
> Only dl_type = 0x800 (IPv4) works and no error message returns. I am 
> wondering whether the wildcard is not set correctly in the POX code.
> 
> - Hui 
> 
> On Thu, Sep 12, 2013 at 11:52 PM, Hui Kang <[email protected]> wrote:
> Hi, 
> I have some problem about setting the wildcard for dl_type.
> Basically I want to install a very simple rule on my Arista 7050s swtich.
> The rule is that "all traffic from interface 1 should be forwarded out to 
> interface 5"
> So my match code is 
> 
> msg.match.in_port = 1
> msg.match.dl_type = None
> msg.actions.append(of.ofp_action_output(port = 5))
> 
> No matter whether I explicitly set dl_type = None or not, the rule installed 
> on the switch has "Ethernet type: IPv4". As a result, the ARP packets can not 
> matched against this rule.
> 
> However, in the command line mode of the switch, I can set the Ethernet type 
> correctly.
> 
> is there any wrong with POX? Thanks. 

Doubtful, but anything is possible.  Capture the OpenFlow to the switch and 
look at it in Wireshark.  See the last item in the FAQ 
(http://www.noxrepo.org/pox/manual).

> - Hui

Also, just for fun, you could try setting the following sometime before sending 
a flow_mod:
of.ofp_match.adjust_wildcards = False

.. and see if that changes anything.

-- Murphy

Reply via email to