Yes, seems to work!! Thank you very much! On Mon, 12 Aug 2013 07:39:16 +0900 (JST) FUJITA Tomonori <[email protected]> wrote: > On Fri, 09 Aug 2013 10:59:36 +0200 > "Christoph Brass" <[email protected]> wrote: > >> i developed my ryu-app using the snort-devel branch of >> ryu. Now i tried to port it to the current version of >>ryu. >> But when i use the --observe-links option of the >> app-manager, i got this Error which i cannnot fix: > > This is due to the API change after v2.2 release. > > The following works? > > diff --git a/ryu/ofproto/ofproto_v1_0_parser.py >b/ryu/ofproto/ofproto_v1_0_parser.py > index 3fae86d..535d0f5 100644 > --- a/ryu/ofproto/ofproto_v1_0_parser.py > +++ b/ryu/ofproto/ofproto_v1_0_parser.py > @@ -19,6 +19,7 @@ import binascii > > from ofproto_parser import StringifyMixin, MsgBase, >msg_pack_into, msg_str_attr > from ryu.lib import mac > +from ryu.lib import addrconv > from . import ofproto_parser > from . import ofproto_v1_0 > from . import nx_match > @@ -86,7 +87,7 @@ class >OFPPhyPort(ofproto_parser.namedtuple('OFPPhyPort', ( > def parser(cls, buf, offset): > port = >struct.unpack_from(ofproto_v1_0.OFP_PHY_PORT_PACK_STR, > buf, offset) > - return cls(*port) > + return cls(*(port[0], >addrconv.mac.bin_to_text(port[1])) + port[2:]) > > > class OFPMatch(StringifyMixin): > diff --git a/ryu/ofproto/ofproto_v1_2_parser.py >b/ryu/ofproto/ofproto_v1_2_parser.py > index a9bd0b1..5a0ed23 100644 > --- a/ryu/ofproto/ofproto_v1_2_parser.py > +++ b/ryu/ofproto/ofproto_v1_2_parser.py > @@ -18,6 +18,7 @@ import struct > import itertools > > from ryu.lib import mac > +from ryu.lib import addrconv > from ryu import utils > from ofproto_parser import StringifyMixin, MsgBase, >msg_pack_into, msg_str_attr > from . import ofproto_parser > @@ -175,7 +176,7 @@ class >OFPPort(ofproto_parser.namedtuple('OFPPort', ( > @classmethod > def parser(cls, buf, offset): > port = >struct.unpack_from(ofproto_v1_2.OFP_PORT_PACK_STR, buf, >offset) > - return cls(*port) > + return cls(*(port[0], >addrconv.mac.bin_to_text(port[1])) + port[2:]) > > > @_set_msg_type(ofproto_v1_2.OFPT_FEATURES_REQUEST) > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics >Lite! > It's a free troubleshooting tool designed for >production. > Get down to code-level detail for bottlenecks, with <2% >overhead. > Download for free and get started troubleshooting in >minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Ryu-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ryu-devel
------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
