Skip to content

Update updateip.py #89

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

Merged
merged 4 commits into from
Mar 22, 2023
Merged

Update updateip.py #89

merged 4 commits into from
Mar 22, 2023

Conversation

gregbo
Copy link
Contributor

@gregbo gregbo commented Mar 21, 2023

  • take hostname, username, etc. from command line
  • prompt for password
  • check for errors and handle exceptions from requests

take hostname, username, etc. from command line
prompt for password
check for errors and handle exceptions from requests
@gregbo
Copy link
Contributor Author

gregbo commented Mar 21, 2023

As promised, this update allows parameters such as the hostname, username, etc. to be supplied to the script. I can think of other desirable features, such as:

  • IPv6 support
  • CIDR support
  • validation of IP addresses

Copy link
Collaborator

@xorrkaz xorrkaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this work!

use raise_for_status() to handle requests exceptions
gregbo added 2 commits March 21, 2023 22:26
make management interface a command-line option w/default
use environment variable, if set
Copy link
Collaborator

@xorrkaz xorrkaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@xorrkaz xorrkaz merged commit 26fa0da into CiscoDevNet:master Mar 22, 2023
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

Successfully merging this pull request may close these issues.

2 participants