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
Renaming devices #21
Comments
Sounds good. =) There is another type of object for the undocumented module
|
Btw, to see if a command is present, I recommend using "hypervisor cmd_list module" instead of checking the version. |
Good idea. This is way better! 👍 |
Done. |
As noted in #26 , It also doesn't rename the old files. |
As said in #26, I think you should just go for the -N1 by default first and for you solution second. |
The vm name is used in the file names by default in hypervisor mode. They we left alone and, with the vm stopped, the log file and the lock file remain open. This means that the vm would keep using 2 files with the old name. Now it renames all related files. (best effort) NOTE - will also rename unrelated files that have the old prefix. Re-closes issue #21 - Renaming devices
Done, it's renaming all related files. =) |
Right now when a user rename a device in GNS3, the device is deleted and recreated with the new name.
Here is an example of what happens when you change the hostname for a router from R1 to R2. Everything (all the parameters, UDP NIOs if there are connections etc.) has to be sent again. Surely this is not efficient.
There is the same issue with all other Dynamips devices (Ethernet, ATM, Frame-relay switches, ATM bridge, Ethernet hub)
What I propose is to add new hypervisor commands to simply rename devices internally in Dynamips.
IOS device: vm rename old_hostname new_hostname
Ethernet switch: ethsw rename old_hostname new_hostname
Ethernet hub: nio_bridge rename old_hostname new_hostname
Frame-relay switch: frsw rename old_hostname new_hostname
ATM bridge: atm_bridge rename old_hostname new_hostname
ATM switch: atmsw rename old_hostname new_hostname
Thus for instance, the only command needed to rename a router from R1 to R2 would become the following:
The text was updated successfully, but these errors were encountered: