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

NameError: name 'args' is not defined #5

Closed
dgoodson12722 opened this issue Mar 15, 2018 · 1 comment
Closed

NameError: name 'args' is not defined #5

dgoodson12722 opened this issue Mar 15, 2018 · 1 comment

Comments

@dgoodson12722
Copy link

dgoodson12722 commented Mar 15, 2018

When executed from idle(python v 3.6.4)
========================= RESTART: /root/updateip.py =========================
The router has the following interfaces:

  • GigabitEthernet1
  • GigabitEthernet2
  • GigabitEthernet3
  • Loopback100

Which Interface do you want to configure? GigabitEthernet2
Traceback (most recent call last):
File "/root/updateip.py", line 181, in
sys.exit(main())
File "/root/updateip.py", line 162, in main
selected_interface = interface_selection(interfaces)
File "/root/updateip.py", line 128, in interface_selection
while sel == args.interface or not sel in [intf["name"] for intf in interfaces]:
NameError: name 'args' is not defined

or

The router has the following interfaces:

  • GigabitEthernet1
  • GigabitEthernet2
  • GigabitEthernet3
  • Loopback100

Which Interface do you want to configure? 2
Traceback (most recent call last):
File "/root/updateip.py", line 181, in
sys.exit(main())
File "/root/updateip.py", line 162, in main
selected_interface = interface_selection(interfaces)
File "/root/updateip.py", line 128, in interface_selection
while sel == args.interface or not sel in [intf["name"] for intf in interfaces]:
NameError: name 'args' is not defined

@xorrkaz
Copy link
Collaborator

xorrkaz commented Dec 1, 2020

This appears to have been fixed already. Thanks for reporting.

@xorrkaz xorrkaz closed this as completed Dec 1, 2020
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

2 participants