mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 22:11:14 +02:00
Drop code for temporary projects
Fix https://github.com/GNS3/gns3-gui/issues/982
This commit is contained in:
12 files changed
+25
-224
No files matched your search
@@ -46,16 +46,14 @@ class Controller:
|
||||
self._config_file = os.path.join(config_path, "gns3_controller.conf")
|
||||
|
||||
server_config = Config.instance().get_section_config("Server")
|
||||
print(server_config)
|
||||
if server_config.getboolean("local", False) is True:
|
||||
print("MMOOOOOOONKEYYYYYY")
|
||||
self._computes["local"] = Compute(compute_id="local",
|
||||
controller=self,
|
||||
protocol=server_config.get("protocol", "http"),
|
||||
host=server_config.get("host", "localhost"),
|
||||
port=server_config.getint("port", 3080),
|
||||
user=server_config.get("user", ""),
|
||||
password=server_config.get("password", ""))
|
||||
controller=self,
|
||||
protocol=server_config.get("protocol", "http"),
|
||||
host=server_config.get("host", "localhost"),
|
||||
port=server_config.getint("port", 3080),
|
||||
user=server_config.get("user", ""),
|
||||
password=server_config.get("password", ""))
|
||||
|
||||
def save(self):
|
||||
"""
|
||||
@@ -107,7 +105,6 @@ class Controller:
|
||||
"""
|
||||
if compute_id not in self._computes:
|
||||
|
||||
|
||||
# We disallow to create from the outside the
|
||||
if compute_id == 'local':
|
||||
return None
|
||||
|
||||
Reference in new issue
Block a user