diff --git a/ztp-root/bootstrap/bootstrap b/ztp-root/bootstrap/bootstrap index fc20e8464ee083fa574c0505a9affb533ff2bd2d..9e8d2cf4d30ee4933c82c2adc6fe7dc563d76ec4 100644 --- a/ztp-root/bootstrap/bootstrap +++ b/ztp-root/bootstrap/bootstrap @@ -18,13 +18,13 @@ def get_config(url): return def write_config(file_content): - with open('mnt/flash/startup-config', 'w') as file: + with open('/mnt/flash/startup-config', 'w') as file: file.write(file_content) def main(): mac_address = get_mac() parsed_mac = mac_address.replace(":", "") - url_with_config = HTTP_SERVER_CONFIG_BASE_URL + parsed_mac + "startup-config" + url_with_config = HTTP_SERVER_CONFIG_BASE_URL + parsed_mac + "/startup-config" startup_config = get_config(url_with_config) write_config(startup_config)