Change the name of veth to avoid bugs :(

Fun stuff the name create different behavior with
network manager.

Ref #440
This commit is contained in:
Julien Duponchelle committed 2016-03-01 15:33:30 +01:00
1 parent 7469f65fa0
commit 59c1e125d3
2 files changed
+10 -10

No files matched your search

+3 -3
View File
@@ -454,10 +454,10 @@ class DockerVM(BaseVM):
"Adapter {adapter_number} doesn't exist on Docker container '{name}'".format(name=self.name, adapter_number=adapter_number))
for index in range(128):
if "gns3-veth{}ext".format(index) not in psutil.net_if_addrs():
if "veth-gns3-ext{}".format(index) not in psutil.net_if_addrs():
adapter.ifc = "eth{}".format(str(index))
adapter.host_ifc = "gns3-veth{}ext".format(str(index))
adapter.guest_ifc = "gns3-veth{}int".format(str(index))
adapter.host_ifc = "veth-gns3-ext{}".format(str(index))
adapter.guest_ifc = "veth-gns3-int{}".format(str(index))
break
if not hasattr(adapter, "ifc"):
raise DockerError(