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] modify_switch_conf stack trace #514

Closed
sadsfae opened this issue Aug 30, 2024 · 2 comments
Closed

[BUG] modify_switch_conf stack trace #514

sadsfae opened this issue Aug 30, 2024 · 2 comments

Comments

@sadsfae
Copy link
Member

sadsfae commented Aug 30, 2024

/usr/lib/python3.12/site-packages/quads/tools/modify_switch_conf.py --host host.example.com --nic3 1410
TypeError: 'Interface' object is not subscriptable
INFO - Host: host.example.com
Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/quads/tools/modify_switch_conf.py", line 152, in <module>
    verify(
  File "/usr/lib/python3.12/site-packages/quads/tools/modify_switch_conf.py", line 28, in verify
    interfaces = sorted(_host_obj.interfaces, key=lambda k: k["name"])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/quads/tools/modify_switch_conf.py", line 28, in <lambda>
    interfaces = sorted(_host_obj.interfaces, key=lambda k: k["name"])
                                                            ~^^^^^^^^
TypeError: 'Interface' object is not subscriptable
@sadsfae sadsfae added this to the 2.0 Series - Bowie milestone Aug 30, 2024
@sadsfae sadsfae moved this from To do to To Do: High Priority and Bugs in QUADS 2.0 Series Aug 30, 2024
@sadsfae
Copy link
Member Author

sadsfae commented Aug 30, 2024

Same command run on QUADS 1.1.8 (without the --change option):

# /opt/quads/quads/tools/modify_switch_conf.py --host host.example.com --nic3 1410
INFO - Host: host.example.com
WARNING - Interface et-0/0/2:2 not using QinQ_vl1410
WARNING - Interface et-0/0/2:2 appears to be a member of VLAN 1472, should be 1410

@grafuls
Copy link
Contributor

grafuls commented Aug 30, 2024

@github-project-automation github-project-automation bot moved this from To Do: High Priority and Bugs to Done in QUADS 2.0 Series Aug 30, 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

2 participants