mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-18 15:33:49 +02:00
Fixes wrong IOS config paths.
This commit is contained in:
parent
5265818365
commit
881cc6f592
@ -435,6 +435,7 @@ class VM(object):
|
|||||||
else:
|
else:
|
||||||
router.set_config(startup_config_path)
|
router.set_config(startup_config_path)
|
||||||
response["startup_config"] = startup_config_path
|
response["startup_config"] = startup_config_path
|
||||||
|
del request["startup_config"]
|
||||||
|
|
||||||
if "private_config" in request:
|
if "private_config" in request:
|
||||||
private_config_path = request["private_config"].replace("\\", '/')
|
private_config_path = request["private_config"].replace("\\", '/')
|
||||||
@ -445,6 +446,7 @@ class VM(object):
|
|||||||
else:
|
else:
|
||||||
router.set_config(router.startup_config, private_config_path)
|
router.set_config(router.startup_config, private_config_path)
|
||||||
response["private_config"] = private_config_path
|
response["private_config"] = private_config_path
|
||||||
|
del request["private_config"]
|
||||||
|
|
||||||
except DynamipsError as e:
|
except DynamipsError as e:
|
||||||
self.send_custom_error(str(e))
|
self.send_custom_error(str(e))
|
||||||
|
Loading…
Reference in New Issue
Block a user