mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-05 14:51:13 +02:00
Code cleanup for docker interface creation
Fix #819 Signed-off-by: Julien Duponchelle <julien@gns3.net>
This commit is contained in:
1 parent
9f6f830418
commit
a3495304ad
2 files changed
+3
-4
No files matched your search
@@ -742,7 +742,7 @@ def test_add_ubridge_connection_no_free_interface(loop, vm):
|
||||
with pytest.raises(DockerError):
|
||||
|
||||
# We create fake ethernet interfaces for docker
|
||||
interfaces = ["veth-gns3-e{}".format(index) for index in range(4096)]
|
||||
interfaces = ["tap-gns3-e{}".format(index) for index in range(4096)]
|
||||
|
||||
with patch("psutil.net_if_addrs", return_value=interfaces):
|
||||
loop.run_until_complete(asyncio.async(vm._add_ubridge_connection(nio, 0, 42)))
|
||||
|
||||
Reference in new issue
Block a user