nautobot / nornir-nautobot

Nornir inventory and plugins for Nautobot.
https://docs.nautobot.com/projects/nornir-nautobot/en/latest/
31 stars 25 forks source link

FR: Make the backup_file optional when getting the config #95

Closed joewesch closed 1 year ago

joewesch commented 1 year ago

Currently when running the default get_config we need to send in a file path to backup_file so it can save the config to a file:

https://github.com/nautobot/nornir-nautobot/blob/5f1236ed5c1e2ac33fc980c65c4c9b360b7e25d1/nornir_nautobot/plugins/tasks/dispatcher/default.py#L79-L82

If we want to get the configuration but not save it we should be able to send in an empty string to disable this functionality.