Hi,
I´m trying to send a message to put a flow from host 1 to host 4 on queue 1 
using ofp_flow_mod. The commando I use is:
        msg = of.ofp_flow_mod()        msg.priority =100        
msg.idle_timeout = 0        msg.hard_timeout = 0        msg.match.dl_src = 
"00:00:00:00:00:01"        msg.match.dl_dst = "00:00:00:00:00:04"        
msg.actions.append(of.ofp_action_enqueue(port = 4, queue_id=1))        
event.connection.send(msg)
But I´ve got the following error:
ERROR:openflow.of_01:[00-00-00-00-00-01 1] OpenFlow Error:[00-00-00-00-00-01 1] 
Error: header:[00-00-00-00-00-01 1] Error:   version: 1[00-00-00-00-00-01 1] 
Error:   type:    1 (OFPT_ERROR)[00-00-00-00-00-01 1] Error:   length:  
76[00-00-00-00-00-01 1] Error:   xid:     7[00-00-00-00-00-01 1] Error: type: 
OFPET_BAD_ACTION (2)[00-00-00-00-00-01 1] Error: code: OFPBAC_BAD_LEN 
(1)[00-00-00-00-00-01 1] Error: datalen: 64[00-00-00-00-00-01 1] Error: 0000: 
01 0e 00 58 00 00 00 07  00 10 00 13 00 00 30 30   
|...X..........00|[00-00-00-00-00-01 1] Error: 0010: 3a 30 30 3a 30 30 3a 30  
30 3a 30 30 3a 30 31 30   |:00:00:00:00:010|[00-00-00-00-00-01 1] Error: 0020: 
30 3a 30 30 3a 30 30 3a  30 30 3a 30 30 3a 30 34   
|0:00:00:00:00:04|[00-00-00-00-00-01 1] Error: 0030: 00 00 00 00 00 00 00 00  
00 00 00 00 00 00 00 00   |................|
I don´t get it! Does it mean pox is composing a message with a wrong length?
If I try using IP addresses, like
        msg = of.ofp_flow_mod()        msg.priority =100        
msg.idle_timeout = 0        msg.hard_timeout = 0        msg.match.dl_type = 
0x0800        msg.match.nw_src = "10.0.0.1"        msg.match.nw_dst = 
"10.0.0.4"        msg.actions.append(of.ofp_action_enqueue(port = 4, 
queue_id=1))        event.connection.send(msg)
It works!!!
Any clues?Is that with ovs I can´t modify a flow by MAC addresses?

 Henrique Moura 
[email protected] 

                                          
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to