Closed julien-duponchelle closed 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.
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).