Compare commits

...

10 Commits

9 changed files with 26 additions and 6 deletions

View File

@@ -1,5 +1,11 @@
# Change Log
## 2.2.0b3 15/06/2019
* Fix template migration issues from GUI to controller. Fixes https://github.com/GNS3/gns3-gui/issues/2803
* %guest-cid% variable implementation for Qemu VMs. Fixes https://github.com/GNS3/gns3-gui/issues/2804
* Increase timeout from 2 to 5 seconds for synchronous check. Ref #2805
## 2.2.0b2 29/05/2019
* Fix KeyError: 'endpoint' issue. Fixes #2802

View File

@@ -52,7 +52,7 @@ class CrashReport:
Report crash to a third party service
"""
DSN = "https://490d29e0583d4af5a05bea9d722c477d:e35f247c273d46fc8244681ad89bd5de@sentry.io/38506"
DSN = "https://768ba187f7d244bab74ea343a28d037c:d995affe39b34f94932101b402acb5cb@sentry.io/38506"
if hasattr(sys, "frozen"):
cacert = get_resource("cacert.pem")
if cacert is not None and os.path.isfile(cacert):

View File

@@ -727,7 +727,7 @@ class HTTPClient(QtCore.QObject):
e = HttpBadRequest(body)
raise e
def getSynchronous(self, method, endpoint, prefix="/v2", timeout=2):
def getSynchronous(self, method, endpoint, prefix="/v2", timeout=5):
"""
Synchronous check if a server is running

View File

@@ -513,7 +513,7 @@ class LocalServer(QtCore.QObject):
:returns: boolean
"""
status, json_data = HTTPClient(self._settings).getSynchronous("GET", "/version", timeout=2)
status, json_data = HTTPClient(self._settings).getSynchronous("GET", "/version")
if status == 401: # Auth issue that need to be solved later
return True
elif json_data is None:

View File

@@ -98,7 +98,8 @@ class IOUPreferencesPage(QtWidgets.QWidget, Ui_IOUPreferencesPageWidget):
:param settings: IOU settings
"""
self.IOULicenceTextEdit.setPlainText(settings["iourc_content"])
if settings["iourc_content"]:
self.IOULicenceTextEdit.setPlainText(settings["iourc_content"])
self.uiLicensecheckBox.setChecked(settings["license_check"])
def loadPreferences(self):

View File

@@ -860,6 +860,8 @@
<li>%vm-id% =VM ID</li>
<li>%project-id% = project ID</li>
<li>%project-path% = project path</li>
<li>%console-port% = console port number</li>
<li>%guest-cid% = unique ID from 3 to 65535</li>
</ul>
&lt;/body&gt;&lt;/html&gt;</string>
</property>

View File

@@ -2,7 +2,7 @@
# Form implementation generated from reading ui file '/home/grossmj/PycharmProjects/gns3-gui/gns3/modules/qemu/ui/qemu_vm_configuration_page.ui'
#
# Created by: PyQt5 UI code generator 5.11.3
# Created by: PyQt5 UI code generator 5.9
#
# WARNING! All changes made in this file will be lost!
@@ -541,6 +541,8 @@ class Ui_QemuVMConfigPageWidget(object):
"<li>%vm-id% =VM ID</li>\n"
"<li>%project-id% = project ID</li>\n"
"<li>%project-path% = project path</li>\n"
"<li>%console-port% = console port number</li>\n"
"<li>%guest-cid% = unique ID from 3 to 65535</li>\n"
"</ul>\n"
"</body></html>"))
self.uiBaseVMCheckBox.setText(_translate("QemuVMConfigPageWidget", "Use as a linked base VM"))

View File

@@ -30,6 +30,10 @@ class Template:
settings["template_id"] = str(uuid.uuid4())
self._settings = copy.deepcopy(settings)
# The "appliance_id" setting has been replaced by "template_id" setting in version 2.2
if "appliance_id" in self._settings:
self._settings["template_id"] = self._settings.pop("appliance_id")
# The "node_type" setting has been replaced by "template_type" setting in version 2.2
if "node_type" in self._settings:
self._settings["template_type"] = self._settings.pop("node_type")
@@ -38,6 +42,11 @@ class Template:
if "server" in self._settings:
self._settings["compute_id"] = self._settings.pop("server")
for setting in self._settings.copy():
# remove deprecated settings
if setting in ["enable_remote_console", "use_ubridge", "acpi_shutdown", "default_symbol", "hover_symbol"]:
del self._settings[setting]
def id(self):
"""
Returns the template ID.

View File

@@ -23,7 +23,7 @@
# or negative for a release candidate or beta (after the base version
# number has been incremented)
__version__ = "2.2.0b2"
__version__ = "2.2.0b3"
__version_info__ = (2, 2, 0, -99)
# If it's a git checkout try to add the commit