GNS3 / gns3-server

GNS3 server
GNU General Public License v3.0
812 stars 263 forks source link

[2.0] Make the host binding for HTTP query and network query independent #646

Closed julien-duponchelle closed 8 years ago

julien-duponchelle commented 8 years ago

When we use the GNS3 VM we need to reconfigure the local server networking to allow communication between the VM on local server and VM in the GNS3 VM. In 1.5 we change the IP of the local server to match the subnet of the GNS3 VM.

In 1.5 this require to restart the server to apply the IP change and reinitialize connections in the client.

But the fact that the HTTP API change his IP in the same time is a side effect, it's not require. We can use two different variable in the controller one for host binding and the second for the binding of the VM (by default they are equal except in case of a GNS3 VM running).

julien-duponchelle commented 8 years ago

I found a different way. We just need to pass two IP in the same subnet when we create the NIO.

The only emulator that listen on a specific IP seem to be Qemu. The other listen on all. I will experiment that.