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
release=self.get_release()
ifrelease=="2.2":
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:
code,option=self.display.menu("Select an option",
choices=[("Upgrade GNS3","Upgrades only the GNS3 pakage and dependences."),
("Upgrade All","Upgrades all avaiable packages"),
("Dist Upgrade","Upgrades all avaiable packages and the Linux Kernel. Requires a reboot.")])