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

[BUG] Stack trace with --add-interface on 2.1 #535

Closed
sadsfae opened this issue Oct 5, 2024 · 1 comment
Closed

[BUG] Stack trace with --add-interface on 2.1 #535

sadsfae opened this issue Oct 5, 2024 · 1 comment

Comments

@sadsfae
Copy link
Member

sadsfae commented Oct 5, 2024

QUADS VERSION quads-2.1.0-20241002.noarch
OS VERSION Fedora 40 / Python 3.12

quads --add-interface --interface-name em1 --interface-mac 52:54:00:d9:5d:df --interface-switch-ip 10.12.22.201 --interface-port xe-0/0/1:0 --interface-vendor "Intel" --interface-speed 1000 --host m34-h05-000-r650.example.com

This produces a stack trace:

Oct 05 13:18:47 host-03 gunicorn[823]:   File "/usr/lib/python3.12/site-packages/flask/app.py", line 865, in dispatch_request
Oct 05 13:18:47 host-03 gunicorn[823]:     return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
Oct 05 13:18:47 host-03 gunicorn[823]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 05 13:18:47 host-03 gunicorn[823]:   File "/usr/lib/python3.12/site-packages/quads/server/blueprints/__init__.py", line 83, in decorated_function
Oct 05 13:18:47 host-03 gunicorn[823]:     return f(*args, **kwargs)
Oct 05 13:18:47 host-03 gunicorn[823]:            ^^^^^^^^^^^^^^^^^^
Oct 05 13:18:47 host-03 gunicorn[823]:   File "/usr/lib/python3.12/site-packages/quads/server/blueprints/interfaces.py", line 72, in create_interface
Oct 05 13:18:47 host-03 gunicorn[823]:     if speed and not speed > 0:
Oct 05 13:18:47 host-03 gunicorn[823]:                      ^^^^^^^^^
Oct 05 13:18:47 host-03 gunicorn[823]: TypeError: '>' not supported between instances of 'str' and 'int'
@sadsfae
Copy link
Member Author

sadsfae commented Oct 5, 2024

@sadsfae sadsfae moved this from To do to In progress in QUADS 2.1 Series Oct 5, 2024
@sadsfae sadsfae closed this as completed in 34ecc3e Oct 7, 2024
@github-project-automation github-project-automation bot moved this from In progress to Done in QUADS 2.1 Series Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

1 participant