mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-23 23:38:21 +00:00
Return the full path to the capture
This commit is contained in:
parent
264254e657
commit
76b2ca2bc0
@ -145,5 +145,6 @@ class Link:
|
||||
return {
|
||||
"vms": res, "link_id": self._id,
|
||||
"capturing": self._capturing,
|
||||
"capture_file_name": self._capture_file_name
|
||||
"capture_file_name": self._capture_file_name,
|
||||
"capture_file_path": self.capture_file_path
|
||||
}
|
||||
|
@ -61,6 +61,10 @@ LINK_OBJECT_SCHEMA = {
|
||||
"capture_file_name": {
|
||||
"description": "Read only propertie. The name of the capture file if capture is running",
|
||||
"type": ["string", "null"]
|
||||
},
|
||||
"capture_file_path": {
|
||||
"description": "Read only propertie. The full path of the capture file if capture is running",
|
||||
"type": ["string", "null"]
|
||||
}
|
||||
},
|
||||
"required": ["vms"],
|
||||
|
@ -86,7 +86,8 @@ def test_json(async_run, project, compute):
|
||||
}
|
||||
],
|
||||
"capturing": False,
|
||||
"capture_file_name": None
|
||||
"capture_file_name": None,
|
||||
"capture_file_path": None
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user