nautobot/nornir-nautobot

FR: Make the backup_file optional when getting the config

Closed this issue · 0 comments

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:

make_folder(os.path.dirname(backup_file))
with open(backup_file, "w", encoding="utf8") as filehandler:
filehandler.write(running_config)

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.