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