mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-10-24 20:02:35 +03:00
Add hostname entry to sample network config for Docker nodes. Fixes #2039
This commit is contained in:
parent
527d4bb3ea
commit
988ca7574c
@ -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):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user