-
Notifications
You must be signed in to change notification settings - Fork 441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
modifying a copy of a project changes the original #3650
Comments
Hum, there is a project ID inside the .gns3 file, this means the project ID will be the same if you copy projects like that. |
I think also. But it gives a strange feeling : we don't expect that |
Maybe we should check for duplicated project ID? |
Okay, but then what do you do with your multiple project IDs ? How do you choose ? |
We could automatically generate a new project ID or warn users there are projects with duplicated IDs. Not sure it's worth doing anything... |
I don't understand something: When we choose a project (example A), GNS3 goes through all the projects to find the ID of A? |
No, the projects info is loaded by the controller. Then when you select your project, GNS3 will use its ID to find in the list. |
So the controller loads all the projects (at least the IDs), and it selects the ID from this list. |
I see three possibilities:
I believe that the simplest would be option number 2, since, when importing, we can consider that it will be a "new project" on the server. This would simplify the code, since it would only generate a new ID, there would be no need to ask the client anything and there would be no need to check for duplicate IDs. Everything would work transparently for the user. |
Hi
I'm not sure if this is a bug.
I think I see where it's coming from, but it has a surprising effect.
With GNS3 2.2, i create a new projet ("untitle") with devices.
I close GNS3.
With Linux, i do a copy of this project with the name "untitle_copy"
cp -R untitle untitle_copy
With GNS3, i want to modify the project "untitle_copy".
As in GNS3, in "Projects library", i don't see my copy, i force with the button "Open a project from disk" and i open it. (The title in GNS3 is "untitle")
I move the devices on this project.
I close GNS3.
With GNS3, I open the project "untitle".
Devices are also moved
The text was updated successfully, but these errors were encountered: