Hi Talal,
On 2017年02月23日 15:29, Talal Al wrote: > Hi Iwase, > > > Thank you for your prompt reply. > > > The problem with simple_switch.py because I wanna use it with OVX (which only > supports OF v1.0, so I'm using simple_switch.py). > > With the new update on Ryu, you would receive a message similar to the one in > my previous email. You mean this problem will occur with the latest Ryu and not occur with the old Ryu? Which version of Ryu works well? And even if with simple_switch.py, the same workaround should work. (Maybe, another problem might occur...) Please try the snippet on my previous mail first. Thanks, Iwase > > > To get rid of this problem, I just rolled back to previous Ryu. > > > Cheers, > > Talal > > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ > *From:* Iwase Yusuke <[email protected]> > *Sent:* Thursday, February 23, 2017 4:03:18 PM > *To:* [email protected] > *Cc:* [email protected] > *Subject:* Re: [Ryu-devel] Bug with Simple_Switch > > Hi Talal, > > You mean at the following? > https://github.com/osrg/ryu/blob/master/ryu/app/simple_switch_13.py#L82 > >> AttributeError: 'NoneType' object has no attribute 'ethertype' > > This error shows that the packet data contained in Packet-In message was > NOT an Ethernet frame or terribly truncated for parsing it, I guess. > (OpenFlow Spec 1.3 says the packet data contained in Packet-In message > should be an Ethernet frame.) > > Was the packet data is other than an Ethernet frame? > > OTOH, for the workaround, how about adding the following be for this > if statement? > > e.g.) > pkt = packet.Packet(msg.data) > eth = pkt.get_protocols(ethernet.ethernet)[0] > if not eth: > # ignore non ethernet frame > return > > if eth.ethertype == ether_types.ETH_TYPE_LLDP: > # ignore lldp packet > return > > Thanks, > Iwase > > On 2017年02月23日 14:27, Talal Al wrote: >> Dear All, >> >> >> I just updated Ryu in my system and got an error with simple_switch " >> >> if eth.ethertype == ether_types.ETH_TYPE_LLDP: >> AttributeError: 'NoneType' object has no attribute 'ethertype' >> " >> >> >> Any idea? >> >> >> Cheers, >> >> Talal >> >> >> >> ------------------------------------------------------------------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, SlashDot.org! http://sdm.link/slashdot >> >> >> >> _______________________________________________ >> Ryu-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/ryu-devel >> ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
