1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 17:28:08 +00:00

Add hostname entry to sample network config for Docker nodes. Fixes #2039

This commit is contained in:
grossmj 2022-06-08 01:07:31 +08:00
parent 527d4bb3ea
commit 988ca7574c

View File

@ -314,7 +314,8 @@ class DockerVM(BaseNode):
# DHCP config for eth{adapter} # DHCP config for eth{adapter}
#auto eth{adapter} #auto eth{adapter}
#iface eth{adapter} inet dhcp #iface eth{adapter} inet dhcp
""".format(adapter=adapter)) #hostname {hostname}
""".format(adapter=adapter, hostname=self._name))
return path return path
async def create(self): async def create(self):