Skip to content

Commit

Permalink
Bump to version 1.0-beta4.
Browse files Browse the repository at this point in the history
  • Loading branch information
grossmj committed Oct 14, 2014
1 parent c6af132 commit 10d6811
Show file tree
Hide file tree
Showing 12 changed files with 37 additions and 22 deletions.
29 changes: 14 additions & 15 deletions gns3/cloud/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,34 @@

from PyQt4.QtCore import QThread
from PyQt4.QtCore import pyqtSignal
import paramiko

from .rackspace_ctrl import RackspaceCtrl
from ..topology import Topology
from ..servers import Servers


log = logging.getLogger(__name__)


class AllowAndForgetPolicy(paramiko.MissingHostKeyPolicy):
"""
Custom policy for server host keys: we simply accept the key
the server sent to us without storing it.
"""
def missing_host_key(self, *args, **kwargs):
"""
According to MissingHostKeyPolicy protocol, to accept
the key, simply return.
"""
return


@contextmanager
def ssh_client(host, key_string):
"""
Context manager wrapping a SSHClient instance: the client connects on
enter and close the connection on exit
"""

import paramiko
class AllowAndForgetPolicy(paramiko.MissingHostKeyPolicy):
"""
Custom policy for server host keys: we simply accept the key
the server sent to us without storing it.
"""
def missing_host_key(self, *args, **kwargs):
"""
According to MissingHostKeyPolicy protocol, to accept
the key, simply return.
"""
return

client = paramiko.SSHClient()
try:
f_key = io.StringIO(key_string)
Expand Down
2 changes: 1 addition & 1 deletion gns3/dialogs/preferences_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def _loadPreferencePages(self):
GeneralPreferencesPage,
ServerPreferencesPage,
PacketCapturePreferencesPage,
CloudPreferencesPage,
#CloudPreferencesPage,
]

for page in pages:
Expand Down
2 changes: 1 addition & 1 deletion gns3/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def __init__(self, parent=None):
self.setWindowIcon(QtGui.QIcon(":/images/gns3.ico"))

#FIXME: hide the cloud dock for beta release
#self.uiCloudInspectorDockWidget.hide()
self.uiCloudInspectorDockWidget.hide()

# load initial stuff once the event loop isn't busy
QtCore.QTimer.singleShot(0, self.startupLoading)
Expand Down
3 changes: 3 additions & 0 deletions gns3/modules/dynamips/ui/ios_router_wizard.ui
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
<ui version="4.0">
<class>IOSRouterWizard</class>
<widget class="QWizard" name="IOSRouterWizard">
<property name="windowModality">
<enum>Qt::WindowModal</enum>
</property>
<property name="geometry">
<rect>
<x>0</x>
Expand Down
3 changes: 2 additions & 1 deletion gns3/modules/dynamips/ui/ios_router_wizard_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Form implementation generated from reading ui file '/home/grossmj/PycharmProjects/gns3-gui/gns3/modules/dynamips/ui/ios_router_wizard.ui'
#
# Created: Tue Oct 14 11:57:53 2014
# Created: Tue Oct 14 17:01:29 2014
# by: PyQt4 UI code generator 4.10.4
#
# WARNING! All changes made in this file will be lost!
Expand All @@ -26,6 +26,7 @@ def _translate(context, text, disambig):
class Ui_IOSRouterWizard(object):
def setupUi(self, IOSRouterWizard):
IOSRouterWizard.setObjectName(_fromUtf8("IOSRouterWizard"))
IOSRouterWizard.setWindowModality(QtCore.Qt.WindowModal)
IOSRouterWizard.resize(513, 397)
self.uiIOSImageWizardPage = QtGui.QWizardPage()
self.uiIOSImageWizardPage.setObjectName(_fromUtf8("uiIOSImageWizardPage"))
Expand Down
3 changes: 3 additions & 0 deletions gns3/modules/iou/ui/iou_device_wizard.ui
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
<ui version="4.0">
<class>IOUDeviceWizard</class>
<widget class="QWizard" name="IOUDeviceWizard">
<property name="windowModality">
<enum>Qt::WindowModal</enum>
</property>
<property name="geometry">
<rect>
<x>0</x>
Expand Down
3 changes: 2 additions & 1 deletion gns3/modules/iou/ui/iou_device_wizard_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Form implementation generated from reading ui file '/home/grossmj/PycharmProjects/gns3-gui/gns3/modules/iou/ui/iou_device_wizard.ui'
#
# Created: Fri Oct 10 10:43:47 2014
# Created: Tue Oct 14 17:01:29 2014
# by: PyQt4 UI code generator 4.10.4
#
# WARNING! All changes made in this file will be lost!
Expand All @@ -26,6 +26,7 @@ def _translate(context, text, disambig):
class Ui_IOUDeviceWizard(object):
def setupUi(self, IOUDeviceWizard):
IOUDeviceWizard.setObjectName(_fromUtf8("IOUDeviceWizard"))
IOUDeviceWizard.setWindowModality(QtCore.Qt.WindowModal)
IOUDeviceWizard.resize(514, 366)
self.uiNameImageWizardPage = QtGui.QWizardPage()
self.uiNameImageWizardPage.setObjectName(_fromUtf8("uiNameImageWizardPage"))
Expand Down
3 changes: 3 additions & 0 deletions gns3/modules/qemu/ui/qemu_vm_wizard.ui
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
<ui version="4.0">
<class>QemuVMWizard</class>
<widget class="QWizard" name="QemuVMWizard">
<property name="windowModality">
<enum>Qt::WindowModal</enum>
</property>
<property name="geometry">
<rect>
<x>0</x>
Expand Down
3 changes: 2 additions & 1 deletion gns3/modules/qemu/ui/qemu_vm_wizard_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Form implementation generated from reading ui file '/home/grossmj/PycharmProjects/gns3-gui/gns3/modules/qemu/ui/qemu_vm_wizard.ui'
#
# Created: Fri Oct 10 10:43:48 2014
# Created: Tue Oct 14 17:01:29 2014
# by: PyQt4 UI code generator 4.10.4
#
# WARNING! All changes made in this file will be lost!
Expand All @@ -26,6 +26,7 @@ def _translate(context, text, disambig):
class Ui_QemuVMWizard(object):
def setupUi(self, QemuVMWizard):
QemuVMWizard.setObjectName(_fromUtf8("QemuVMWizard"))
QemuVMWizard.setWindowModality(QtCore.Qt.WindowModal)
QemuVMWizard.resize(514, 367)
self.uiNameTypeWizardPage = QtGui.QWizardPage()
self.uiNameTypeWizardPage.setObjectName(_fromUtf8("uiNameTypeWizardPage"))
Expand Down
3 changes: 3 additions & 0 deletions gns3/modules/virtualbox/ui/virtualbox_vm_wizard.ui
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
<ui version="4.0">
<class>VirtualBoxVMWizard</class>
<widget class="QWizard" name="VirtualBoxVMWizard">
<property name="windowModality">
<enum>Qt::WindowModal</enum>
</property>
<property name="geometry">
<rect>
<x>0</x>
Expand Down
3 changes: 2 additions & 1 deletion gns3/modules/virtualbox/ui/virtualbox_vm_wizard_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Form implementation generated from reading ui file '/home/grossmj/PycharmProjects/gns3-gui/gns3/modules/virtualbox/ui/virtualbox_vm_wizard.ui'
#
# Created: Tue Oct 7 14:06:50 2014
# Created: Tue Oct 14 17:01:29 2014
# by: PyQt4 UI code generator 4.10.4
#
# WARNING! All changes made in this file will be lost!
Expand All @@ -26,6 +26,7 @@ def _translate(context, text, disambig):
class Ui_VirtualBoxVMWizard(object):
def setupUi(self, VirtualBoxVMWizard):
VirtualBoxVMWizard.setObjectName(_fromUtf8("VirtualBoxVMWizard"))
VirtualBoxVMWizard.setWindowModality(QtCore.Qt.WindowModal)
VirtualBoxVMWizard.resize(514, 367)
self.uiVirtualBoxWizardPage = QtGui.QWizardPage()
self.uiVirtualBoxWizardPage.setObjectName(_fromUtf8("uiVirtualBoxWizardPage"))
Expand Down
2 changes: 1 addition & 1 deletion gns3/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
number has been incremented)
"""

__version__ = "1.0beta4.dev2"
__version__ = "1.0beta4"
__version_info__ = (1, 0, 0, -99)

0 comments on commit 10d6811

Please sign in to comment.