From 42f409d5f9d7784a612af79f4329a15d6d7999ab Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Tue, 28 Mar 2017 11:25:26 +0200 Subject: [PATCH] Fix race conditions in creation of Frame Relay Switch --- gns3server/compute/dynamips/nodes/frame_relay_switch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gns3server/compute/dynamips/nodes/frame_relay_switch.py b/gns3server/compute/dynamips/nodes/frame_relay_switch.py index 943e3d02..6e8a242a 100644 --- a/gns3server/compute/dynamips/nodes/frame_relay_switch.py +++ b/gns3server/compute/dynamips/nodes/frame_relay_switch.py @@ -239,10 +239,10 @@ class FrameRelaySwitch(Device): """ if port1 not in self._nios: - raise DynamipsError("Port {} is not allocated".format(port1)) + return if port2 not in self._nios: - raise DynamipsError("Port {} is not allocated".format(port2)) + return nio1 = self._nios[port1] nio2 = self._nios[port2]