mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-04 06:21:15 +02:00
Stream pcap from compute to controller to client
This commit is contained in:
15 files changed
+172
-124
No files matched your search
@@ -122,3 +122,12 @@ class UDPLink(Link):
|
||||
return vm
|
||||
|
||||
raise aiohttp.web.HTTPConflict(text="Capture is not supported for this link")
|
||||
|
||||
@asyncio.coroutine
|
||||
def read_pcap(self):
|
||||
"""
|
||||
Return a FileStream of the Pcap from the compute node
|
||||
"""
|
||||
if self._capture_vm:
|
||||
compute = self._capture_vm["vm"].compute
|
||||
return compute.streamFile(self._project, "tmp/captures/" + self.capture_file_name())
|
||||
Reference in new issue
Block a user