On Fri, 28 Nov 2014 12:28:21 -0200
Ricardo Balbinot <[email protected]> wrote:

> CODE A
> match = parser.OFPMatch(vlan_pcp=0, vlan_vid=id_grupo)
> actions = [parser.OFPActionGroup(group_id=id_grupo)]
> resp = self.add_flow(datapath,32768,match,actions)
> 
> ADD_FLOW is this code:
> ofproto = datapath.ofproto
> parser = datapath.ofproto_parser
> instruct =
> [parser.OFPInstructionActions(ofproto.OFPIT_APPLY_ACTIONS,actions)]
> mod = parser.OFPFlowMod(datapath=datapath,priority=priority,match=match,
>             instructions=instruct,command=ofproto.OFPFC_ADD,table_id=0)
> datapath.send_msg(mod)
> 
> Using the code as is, I have no flow entry added to the switch at all...
> when I remove the valn_pcp field from the match, the flow is added
> normaly....
> I am using an ovs switch with openflow 1.3... I already tried to manually
> add the flow entry using dpctl with the vlan_pcp field, and it adds the
> flow rule normally, so I am guessing this might be a Ryu problem...

parser.OFPMatch(vlan_pcp=1, vlan_vid=0x1000|3)

gives me a match including vlan_id and pcp like the followng:

# ovs-ofctl dump-flows s0 -O OpenFlow13
OFPST_FLOW reply (OF1.3) (xid=0x2):
 cookie=0x0, duration=1.893s, table=0, n_packets=0, n_bytes=0, 
priority=0,dl_vlan=3,dl_vlan_pcp=1 actions=CONTROLLER:65535

The following mail would give a hint on you how to handle vlan with
OFPMatch:

http://thread.gmane.org/gmane.network.ryu.devel/8109/focus=8164

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to