Hi Alan,

On my environment, Ryu + OVS on Minint, Ryu could install a flow entry with two 
SET_FIELD actions.

$ git diff
diff --git a/ryu/app/simple_switch_13.py b/ryu/app/simple_switch_13.py
index 3e7c598..eb92c31 100644
--- a/ryu/app/simple_switch_13.py
+++ b/ryu/app/simple_switch_13.py
@@ -48,6 +48,16 @@ class SimpleSwitch13(app_manager.RyuApp):
                                            ofproto.OFPCML_NO_BUFFER)]
          self.add_flow(datapath, 0, match, actions)
  
+        match = parser.OFPMatch(
+            vlan_vid=(ofproto.OFPVID_PRESENT, ofproto.OFPVID_PRESENT),
+        )
+        actions = [
+            parser.OFPActionSetField(vlan_vid=(100 | ofproto.OFPVID_PRESENT)),
+            parser.OFPActionSetField(vlan_vid=(200 | ofproto.OFPVID_PRESENT)),
+            parser.OFPActionOutput(2)
+        ]
+        self.add_flow(datapath, 10, match, actions)
+
      def add_flow(self, datapath, priority, match, actions, buffer_id=None):
          ofproto = datapath.ofproto
          parser = datapath.ofproto_parser

$ sudo mn --controller remote
...
mininet> sh ovs-ofctl dump-flows s1
NXST_FLOW reply (xid=0x4):
  cookie=0x0, duration=12.159s, table=0, n_packets=0, n_bytes=0, idle_age=12, 
priority=10,vlan_tci=0x1000/0x1000 
actions=mod_vlan_vid:100,mod_vlan_vid:200,output:2
  cookie=0x0, duration=12.159s, table=0, n_packets=4, n_bytes=280, idle_age=70, 
priority=0 actions=CONTROLLER:65535
...(snip)


I think Ryu can send the FlowMod messages with two SET_FIELD actions,
but OF-DPA is failing to install them to its own flow table.


Thanks,
Iwase

On 2016年08月01日 17:41, Alan Deikman wrote:
> I am using Ryu with OF-DPA.   Apparently it is a requirement for a specific 
> table to enter a flow rule that has two Set Actions on the same variable.  
> When I attempt to code this the the same object twice.  The code looks 
> something like this:
>
> actions = [
>   parser.OFPActionSetField(vlan_vid = value1),
>   parser.OFPActionSetField(vlan_vid= value2)
>
>  ]
>
> However when I call the OFPFlowMod constructor the resulting object will have 
> only one OFPActionSetField in it.  Is it correct that Ryu cannot build such 
> as Flow Modification?
>
>
> ----------------------------
> Alan Deikman
> ZNYX Networks, Inc.
>
>
>
>
>
>
> ------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>

------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to