mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-26 00:38:10 +00:00
Added Web UI to Dialog
This commit is contained in:
parent
f98a60fc74
commit
62c2ca9be1
@ -143,7 +143,7 @@ class Welcome_dialog:
|
|||||||
self.update(force=True)
|
self.update(force=True)
|
||||||
|
|
||||||
|
|
||||||
def get_release():
|
def get_release(self):
|
||||||
try:
|
try:
|
||||||
with open(os.path.expanduser("~/.config/GNS3/gns3_release")) as f:
|
with open(os.path.expanduser("~/.config/GNS3/gns3_release")) as f:
|
||||||
content = f.read()
|
content = f.read()
|
||||||
@ -258,7 +258,17 @@ class Welcome_dialog:
|
|||||||
ip = self.get_ip()
|
ip = self.get_ip()
|
||||||
|
|
||||||
if ip:
|
if ip:
|
||||||
content += "IP: {ip}\n\nTo log in using SSH:\nssh gns3@{ip}\nPassword: gns3\n\nImages and projects are located in /opt/gns3""".format(ip=ip)
|
content += f"""
|
||||||
|
IP: {ip}
|
||||||
|
Web UI: http://{ip}:3080
|
||||||
|
|
||||||
|
To log in using SSH:
|
||||||
|
ssh gns3@{ip}
|
||||||
|
Password: gns3
|
||||||
|
|
||||||
|
Images and projects are located in /opt/gns3
|
||||||
|
""".strip()
|
||||||
|
|
||||||
else:
|
else:
|
||||||
content += "eth0 is not configured. Please manually configure it via the Networking menu."
|
content += "eth0 is not configured. Please manually configure it via the Networking menu."
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user