ifself.display.yesno("PLEASE SNAPSHOT THE VM BEFORE RUNNING THE UPGRADE IN CASE OF FAILURE. The server will reboot at the end of the upgrade process. Continue?")!=self.display.OK:
ifself.display.yesno("It is recommended to ensure all Nodes are shutdown before upgrading. Continue?")!=self.display.OK:
return
return
release=self.get_release()
code,option=self.display.menu("Select an option",
ifrelease=="2.2":
choices=[("Upgrade GNS3","Upgrades only the GNS3 pakage and dependences."),
ifself.display.yesno("It is recommended to run GNS3 version 2.2 with lastest GNS3 VM based on Ubuntu 18.04 LTS, please download this VM from our website or continue at your own risk!")!=self.display.OK:
("Upgrade All","Upgrades all avaiable packages"),
("Dist Upgrade","Upgrades all avaiable packages and the Linux Kernel. Requires a reboot.")])