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.
To get rid of this problem, I just rolled back to previous Ryu.
Cheers,
Talal
________________________________
From: Iwase Yusuke <iwase.yusu...@gmail.com>
Sent: Thursday, February 23, 2017 4:03:18 PM
To: tal...@hotmail.com
Cc: ryu-devel@lists.sourceforge.net
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
> Ryu-devel@lists.sourceforge.net
> 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
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel