When you change settings of the GNS3 VM the VM is reloaded and project using it closed

Fix #644
This commit is contained in:
Julien Duponchelle
2016-08-26 14:09:18 +02:00
parent 5289c714f4
commit 8352ff02a1
7 changed files with 87 additions and 25 deletions

View File

@ -15,6 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import aiohttp
import asyncio
import copy
import uuid
@ -338,7 +339,11 @@ class Node:
"""
Stop a node
"""
yield from self.post("/stop")
try:
yield from self.post("/stop")
# We don't care if a compute is down at this step
except aiohttp.errors.ClientOSError:
pass
@asyncio.coroutine
def suspend(self):