iosfw icon indicating copy to clipboard operation
iosfw copied to clipboard

pass `reload_at` as argument

Open falz opened this issue 5 years ago • 1 comments

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.

falz avatar Sep 01 '20 12:09 falz

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

austind avatar Sep 08 '20 21:09 austind