Hi Arne,
I think that this is the cause.
----------
142: mpls_label=mpls_label),
----------
The comma of an end is not needed. It becomes a tuple.
Thanks,
Satoshi
2013/11/18 arne_goetje <[email protected]>
> Hi list,
>
> I get the following when running the attached script in ryu 3.3:
>
> hub: uncaught exception: Traceback (most recent call last):
> File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line 48,
> in _launch
> func(*args, **kwargs)
> File "/usr/local/lib/python2.7/dist-packages/ryu/base/app_manager.py",
> line 110, in _event_loop
> handler(ev)
> File "/home/arne/Share/RYU_Tests/MPLS.py", line 174, in handler_datapath
> outport=3)
> File "/home/arne/Share/RYU_Tests/MPLS.py", line 150, in add_flow2
> datapath.send_msg(mod)
> File
> "/usr/local/lib/python2.7/dist-packages/ryu/controller/controller.py",
> line 220, in send_msg
> msg.serialize()
> File
> "/usr/local/lib/python2.7/dist-packages/ryu/ofproto/ofproto_parser.py",
> line 194, in serialize
> self._serialize_body()
> File
>
> "/usr/local/lib/python2.7/dist-packages/ryu/ofproto/ofproto_v1_3_parser.py",
> line 2354, in _serialize_body
> match_len = self.match.serialize(self.buf, offset)
> AttributeError: 'tuple' object has no attribute 'serialize'
>
>
>
> I use this script to test scenarios on our switches. Flow1 works, but
> Flow2 gives the error message above.
> Is this a bug in Ryu or in my script?
>
> Thanks a lot!
>
> Best Regards!
> Arne Goetje (高盛華)
> Accton FAE Team
>
> ------------------------------------------------------------------------------
> DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
> OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
> Free app hosting. Or install the open source package on any LAMP server.
> Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
> http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
>
--
Satoshi Kobayashi <[email protected]>
------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel