Skip to content

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

2 participants