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

pass reload_at as argument #11

Open
falz opened this issue Sep 1, 2020 · 1 comment
Open

pass reload_at as argument #11

falz opened this issue Sep 1, 2020 · 1 comment

Comments

@falz
Copy link

falz commented Sep 1, 2020

Is there an existing way to pass more config elements as an argument, which would override what it sees in config.yaml?

An example of this would be a script that takes a few arguments, one of which would pass to reload_at manually. Use case is a device-upgrader wrapper script that you send the hostname and reload_at time (in cisco mmm / hhh:mm format natively) which would permit a single script to upgrade a device and have a custom reload time, which is driven by customer.

I eyeballed iosfw.py but didn't see a native way to do this. could be wrong. Was mainly looking at the # Set up connection section which has a few if's.

@austind
Copy link
Owner

austind commented Sep 8, 2020

give the latest dev commit a shot. all the params from schedule_reload() are now exposed to upgrade().

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