OFPPacketIn of OF1.3 is different from OF1.0's. A method written for OF1.0 needs to be modified for OF1.3. Match fields need to be searched for OXM_OF_IN_PORT.
For example, please refer to ryu/tests/integrated/test_request_reply_v12.py _verify_packet_in() thanks, On Tue, May 14, 2013 at 02:09:58PM +0530, nitish nagesh wrote: > Hi All, > > I am trying to write a simple Ryu controller app which on receiving a > packet_in would reply back with a packet out with action=FLOOD. I found the > function provided in the simple_switch.py already does this. I have used the > same function as-is in my app (which handles other events as well, hence i > could not directly take simple_switch.py script). I am using 1.3 OF version. I > see the following error on controller console when a packet in message > arrives: > > EVENT ofp_event->SndRcvRoleMsg EventOFPPacketIn > Traceback (most recent call last): > File "/usr/lib/pymodules/python2.7/gevent/greenlet.py", line 405, in run > result = self._run(*self.args, **self.kwargs) > File "/usr/local/lib/python2.7/dist-packages/ryu-1.8-py2.7.egg/ryu/base/ > app_manager.py", line 106, in _event_loop > handler(ev) > File "/home/openflow/ryu/ryu-master/role_msg_pin.py", line 71, in > _packet_in_handler > msg.in_port) > AttributeError: 'OFPPacketIn' object has no attribute 'in_port' > <Greenlet at 0xa62a0ec: <bound method SndRcvRoleMsg._event_loop of > <role_msg_pin.SndRcvRoleMsg object at 0xa62c36c>>> failed with AttributeError > > After browsing the code a bit, i could see that OFPPacketIn class really does > not have 'in_port' as attribute. Not sure what is wrong. Can someone please > help? > > Thanks, > Nitish > > > ------------------------------------------------------------------------------ > AlienVault Unified Security Management (USM) platform delivers complete > security visibility with the essential security capabilities. Easily and > efficiently configure, manage, and operate all of your security controls > from a single console and one unified framework. Download a free trial. > http://p.sf.net/sfu/alienvault_d2d > _______________________________________________ > Ryu-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ryu-devel -- yamahata ------------------------------------------------------------------------------ AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
