Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError - line 96 #34

Open
majidmc2 opened this issue May 31, 2022 · 2 comments
Open

TypeError - line 96 #34

majidmc2 opened this issue May 31, 2022 · 2 comments

Comments

@majidmc2
Copy link

I want to use Kytos with Mininet based on this document. I get this error when I try to Ping.

  • mininet:
> h1 ping h2
  • kytosd logs:
Exception in thread Thread-105:
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.8/dist-packages/kytos-2021.1-py3.8.egg/kytos/core/helpers.py", line 70, in threaded_handler
    handler(*args)
  File "//var/lib/kytos/napps/kytos/of_l2ls/main.py", line 161, in handle_packet_in
    packet_out = self._create_packet_out(version, packet_in, ports, switch)
  File "//var/lib/kytos/napps/kytos/of_l2ls/main.py", line 96, in _create_packet_out
    if iface and (iface.config & PortConfig10.OFPPC_NO_FWD ==
TypeError: unsupported operand type(s) for &: 'NoneType' and 'int'

@josemauro
Copy link
Member

You should try kytos-ng (https://github.com/kytos-ng/kytos), a fork from the original Kytos SDN Project (https://github.com/kytos/). Check it out, if you get the same error using kytos-ng and reopen this issue there.

@viniarck
Copy link

@majidmc2, kytos-ng tutorials docs is still in progress, however the page that documents how to setup the environment is updated, Python 3.9 is the current supported main version now, also OpenFlow 1.0 will be deprecated, of_l2ls works with OpenFlow1.3. The rest of the tutorial docs will likely be updated soon. In the meantime, if you need help you can also join kytos-ng Slack workspace.

@josemauro, appreciated your help :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants