[Ryu-devel] How to get data from other module.

2015-08-25 Thread muzixing.com
Hi, all. If I want to get some data from other module of app, what should I do? I know we can use CONTEXT to get the app as a service, and then we can get the data in that app. But, the logic of these two app is not about producer and consumer. The second method to get this data

[Ryu-devel] Possible tester.py bug?

2015-08-25 Thread Alan Deikman
I am currently working with Ryu’s switch tester.py and I am getting results I don’t quite understand, or I have uncovered a bug in tester.py. When running the full of13 test suite many tests fail which I think should pass. Most of the tests which feature a “goto_table:1” action fail. For a ba

Re: [Ryu-devel] [PATCH] add a shortest_path app to ryu/app/

2015-08-25 Thread 李冠緯
Sorry, I create a new patch as the attached file for matching pep8. Please check it again, thanks J Kuan-Wei Li fatrabit...@gmail.com +886986855619 From: Yi Tseng [mailto:a86487...@gmail.com] Sent: Tuesday, August 25, 2015 1:49 PM To: 李冠緯 Cc: ryu-devel Subject: Re: [Ryu-de

Re: [Ryu-devel] Implementing OpenFlow Group Table Buckets with different Instructions

2015-08-25 Thread Daniel Herrmann
Hi, >> Table 0: match in port and prefix, go to Group Table (Group n) >> Group n: 4 buckets, select one, go to table 2, 3, 4, or 5 >> Tables 2-5: match prefix again, add different metadata, for example >> ("13" in table 2, "14" in table 3, and so on) and all go to table 10 > > First, why do you n

[Ryu-devel] ?????? ?????? ????: Re: LLDP packet parse error: LLDPUnknownFormat

2015-08-25 Thread muzixing.com
Nice, I have fixed this bug. function _serialize_body shows below: def _serialize_body(self): msg_pack_into(ofproto.OFP_PACKET_IN_PACK_STR, self.buf, ofproto.OFP_HEADER_SIZE, self.buffer_id, self.total_len, self.reason,

Re: [Ryu-devel] 回复: 回复: Re: LLDP packet parse error: LLDPUnknownFormat

2015-08-25 Thread Yusuke Iwase
Hi, On 2015年08月25日 16:40, muzixing.com wrote: > I think the problem may be here: > > @classmethod > def parser(cls, datapath, version, msg_type, msg_len, xid, buf): > msg = super(OFPPacketIn, cls).parser(datapath, version, msg_type, > m

[Ryu-devel] ?????? ????: Re: LLDP packet parse error: LLDPUnknownFormat

2015-08-25 Thread muzixing.com
I think the problem may be here: @classmethod def parser(cls, datapath, version, msg_type, msg_len, xid, buf): msg = super(OFPPacketIn, cls).parser(datapath, version, msg_type, msg_len, xid, buf) (msg.buffer_id, msg.total_len, m

[Ryu-devel] ?????? ????: Re: LLDP packet parse error: LLDPUnknownFormat

2015-08-25 Thread muzixing.com
Yes. I have Implemented this serialise method, otherwise, I can't send PacketIn msg?? Which surprise me is that, I can parse OFPPacketIn correctly, but can not parse LLDP. Why? The key of this issue located in LLDP data or Ethenet data. My serialize method show below: def _serialize_body(se

[Ryu-devel] [PATCH] ofctl_v1_[23]: Convert masked match value into str

2015-08-25 Thread Yusuke Iwase
Currently, ofctl_v1_[23].py always converts metadata field into str type for display, but does not convert pbb_isid and tunnel_id fields even if these fields are masked. So ofctl_v1_3.py fails to convert masked pbb_isid and tunnel_id fields. This patch fixes to convert masked match field into str