1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-24 15:58:08 +00:00

Return the full path to the capture

This commit is contained in:
Julien Duponchelle 2016-04-26 17:36:24 +02:00
parent 264254e657
commit 76b2ca2bc0
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8
3 changed files with 8 additions and 2 deletions

View File

@ -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
}

View File

@ -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"],

View File

@ -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
}