Fixes inconsistencies with startup and private config paths when renaming an IOS router.

This commit is contained in:
grossmj committed 2014-06-18 07:22:57 -06:00
1 parent 587ddf7646
commit 49506ada3f
4 files changed
+8 -14

No files matched your search

+2 -2
View File
@@ -387,8 +387,8 @@ class VM(object):
response = {}
try:
startup_config_path = os.path.join(router.hypervisor.working_dir, "configs", "{}.cfg".format(router.name))
private_config_path = os.path.join(router.hypervisor.working_dir, "configs", "{}-private.cfg".format(router.name))
startup_config_path = os.path.join(router.hypervisor.working_dir, "configs", "i{}_startup-config.cfg".format(router.id))
private_config_path = os.path.join(router.hypervisor.working_dir, "configs", "i{}_private-config.cfg".format(router.id))
# a new startup-config has been pushed
if "startup_config_base64" in request: