From 460fe5ed950bf9626728498fce07718b6b976033 Mon Sep 17 00:00:00 2001 From: grossmj Date: Wed, 20 Apr 2022 19:29:56 +0700 Subject: [PATCH] Prettify Docker '/etc/network/interfaces' file. Ref #2040 --- gns3server/compute/docker/docker_vm.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gns3server/compute/docker/docker_vm.py b/gns3server/compute/docker/docker_vm.py index a34c60ad..ed00ba3f 100644 --- a/gns3server/compute/docker/docker_vm.py +++ b/gns3server/compute/docker/docker_vm.py @@ -294,7 +294,7 @@ class DockerVM(BaseNode): if not os.path.exists(os.path.join(path, "interfaces")): with open(os.path.join(path, "interfaces"), "w+") as f: f.write("""# -# This is a sample network config uncomment lines to configure the network +# This is a sample network config, please uncomment lines to configure the network # """) @@ -309,8 +309,9 @@ class DockerVM(BaseNode): #\tup echo nameserver 192.168.{adapter}.1 > /etc/resolv.conf # DHCP config for eth{adapter} -# auto eth{adapter} -# iface eth{adapter} inet dhcp""".format(adapter=adapter)) +#auto eth{adapter} +#iface eth{adapter} inet dhcp +""".format(adapter=adapter)) return path async def create(self):