Thank you and it is working
On Wed, Apr 2, 2014 at 2:26 AM, Yuichi Ito <[email protected]> wrote: > Hi, please try this. > > {"cookie":"1","dpid":"1", > "match { "dl_type":"2048", > "nw_proto":"1", > "priority":"5", > "nw_src":"10.0.0.1", > "nw_dst":"10.0.0.5", > "in_port":"1"}, > "actions":[{"type":"OUTPUT","port":"2"}, > {"type":"SET_VLAN_VID","vlan_vid":"1"}]} > > On Tue, 1 Apr 2014 16:19:22 +0200 > Windhya Rankothge <[email protected]> wrote: > > > Hi all, > > > > I am trying to add a flow with two actions : "OUTPUT and SET_VLAN_VID. > Following is the part of the string I pass with Curl.. > > > > {"cookie":"1","dpid":"1", > > "match { "dl_type":"2048", > > "nw_proto":"1", > > "priority":"5", > > "nw_src":"10.0.0.1", > > "nw_dst":"10.0.0.5", > > "in_port":"1"}, > > "actions":[{"type":"OUTPUT","port":"2", > > "type":"SET_VLAN_VID","vlan_vid":"1"}]} > > > > Flow entry is added sucessfully and I get following in controller > > > > 127.0.0.1 - - [01/Apr/2014 23:09:56] "POST /stats/flowentry/add > HTTP/1.1" 200 115 0.000590 > > > > But when I check flow table, it has only SET_VLAN_VID as the action.. > > > > {"1": [{"actions": ["SET_VLAN_VID:1"], "idle_timeout": 0, "cookie": 1, > "packet_count": 2, "hard_timeout": 0, "byte_count": 196, "duration_nsec": > 66000000, "priority": 32768, "duration_sec": 417, "table_id": 0, "match": > {"dl_type": 2048, "nw_dst": "10.0.0.5", "dl_vlan_pcp": 0, "dl_src": > "00:00:00:00:00:00", "tp_src": 0, "dl_vlan": 0, "nw_src": "10.0.0.1", > "nw_proto": 1, "tp_dst": 0, "dl_dst": "00:00:00:00:00:00", "in_port": 1}}]} > > > > Is there anything I am missing here ? > > Highly appreciate your thoughts.. > > > > > > -- > > Best Regards, > > > > Windhya Rankothge, > > Universitat Pompeu Fabra, > > Barcelona. > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > _______________________________________________ > > Ryu-devel mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/ryu-devel > > > -- Best Regards, Windhya Rankothge, Universitat Pompeu Fabra, Barcelona.
------------------------------------------------------------------------------
_______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
