faucetsdn / ryu

Ryu component-based software defined networking framework
https://ryu-sdn.org
Apache License 2.0
1.52k stars 1.16k forks source link

Using ryu/ofproto/ofproto_v1_5_parser.py in OpenFlow 1.3 application #168

Open paaguti opened 2 years ago

paaguti commented 2 years ago

I'm tryig to use the ping responder application from the ryu book @ https://osrg.github.io/ryu-book/en/html/packet_lib.html#application-examples

During the tests I get the following exception:

  File "/home/student/.local/lib/python3.8/site-packages/ryu/ofproto/ofproto_v1_5_parser.py", line 5137, in __init__
    assert 'in_port' in match
TypeError: argument of type 'NoneType' is not iterable

Why is the OpenFlow15 parser used in an OpenFlow13 application?