mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Fixes inconsistencies with startup and private config paths when renaming an IOS router.
This commit is contained in:
1 parent
587ddf7646
commit
49506ada3f
4 files changed
+8
-14
No files matched your search
@@ -373,7 +373,7 @@ class IOU(IModule):
|
||||
if not iou_instance:
|
||||
return
|
||||
|
||||
config_path = os.path.join(iou_instance.working_dir, "initial-config")
|
||||
config_path = os.path.join(iou_instance.working_dir, "initial-config.cfg")
|
||||
try:
|
||||
if "initial_config_base64" in request:
|
||||
# a new initial-config has been pushed
|
||||
|
||||
@@ -208,9 +208,9 @@ class IOUDevice(object):
|
||||
new_working_dir,
|
||||
e))
|
||||
|
||||
if self._intial_config:
|
||||
if self._initial_config:
|
||||
# update the initial-config
|
||||
config_path = os.path.join(self._working_dir, "initial-config")
|
||||
config_path = os.path.join(self._working_dir, "initial-config.cfg")
|
||||
if os.path.isfile(config_path):
|
||||
try:
|
||||
with open(config_path, "r+", errors="replace") as f:
|
||||
|
||||
Reference in new issue
Block a user