Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "Name" property for "Main Server" #2149

Open
pedroflor opened this issue Jun 28, 2022 · 3 comments
Open

Add "Name" property for "Main Server" #2149

pedroflor opened this issue Jun 28, 2022 · 3 comments
Milestone

Comments

@pedroflor
Copy link

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

@pedroflor
Copy link
Author

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"

@grossmj grossmj added this to the 2.2.34 milestone Aug 5, 2022
@grossmj grossmj modified the milestones: 2.2.34, 3.0 Aug 28, 2022
@grossmj
Copy link
Member

grossmj commented Aug 28, 2022

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

@pedroflor
Copy link
Author

Thanks @grossmj you are a machine!!!

@grossmj grossmj transferred this issue from GNS3/gns3-gui Dec 27, 2022
@grossmj grossmj modified the milestones: 3.0, 3.1 Dec 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants