gns3-server icon indicating copy to clipboard operation
gns3-server copied to clipboard

Add "Name" property for "Main Server"

Open CipherCloak opened this issue 3 years ago • 3 comments

Add custom property for "Main Server"

Currently GNS3-Server sets the name of the server as the hostname of the OS that lives in.

controller/__init__.py
 80         name = socket.gethostname()
 81         if name == "gns3vm":
 82             name = "Main server"

GNS3-GUI, for "Main server", shows the hostname and it's not possible to set a different name than the hostname that gns3-server provides.

OS: Linux Mint GNS Server/GUI: 2.2.33

A picture is worth a thousand words :)

image

CipherCloak avatar Jun 28 '22 20:06 CipherCloak

This is my poor man's hack :)

ns3server/controller/__init__.py
 80         name = socket.gethostname()
 81         name = "MASTER"
 82         if name == "gns3vm":
 83             name = "Main server"

CipherCloak avatar Jun 28 '22 20:06 CipherCloak

Thanks for the suggestion. I will add this for 3.0 instead.

grossmj avatar Aug 28 '22 10:08 grossmj

Thanks @grossmj you are a machine!!!

CipherCloak avatar Aug 29 '22 00:08 CipherCloak