Fix remote packet capture and make sure packet capture is stopped when deleting an NIO. Fixes https://github.com/GNS3/gns3-gui/issues/2753

This commit is contained in:
grossmj committed 2019-04-01 19:47:31 +07:00
1 parent f01706e9e6
commit 4cc5dbc228
18 files changed
+73 -4

No files matched your search

+3
View File
@@ -348,6 +348,7 @@ class TraceNGVM(BaseNode):
raise TraceNGError("Port {port_number} doesn't exist in adapter {adapter}".format(adapter=self._ethernet_adapter,
port_number=port_number))
await self.stop_capture(port_number)
if self.is_running():
await self._ubridge_send("bridge delete {name}".format(name="TraceNG-{}".format(self._id)))
@@ -409,6 +410,8 @@ class TraceNGVM(BaseNode):
"""
nio = self.get_nio(port_number)
if not nio.capturing:
return
nio.stopPacketCapture()
if self.ubridge: