mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 03:08:14 +00:00
Update some sentences related to suspending a link.
This commit is contained in:
parent
5fd842e54d
commit
ca3f6fb4b8
@ -135,7 +135,7 @@ class Link:
|
||||
def get_active_filters(self):
|
||||
"""
|
||||
Return the active filters.
|
||||
If the node is suspend the filters will be override
|
||||
Filters are overridden if the link is suspended.
|
||||
"""
|
||||
if self._suspend:
|
||||
return {"frequency_drop": [-1]}
|
||||
|
@ -199,7 +199,7 @@ class UDPLink(Link):
|
||||
if node["node"].node_type and node["node"].status == "started":
|
||||
return node
|
||||
|
||||
raise aiohttp.web.HTTPConflict(text="Can not capture because no running device on this link")
|
||||
raise aiohttp.web.HTTPConflict(text="Cannot capture because there is no running device on this link")
|
||||
|
||||
@asyncio.coroutine
|
||||
def read_pcap_from_source(self):
|
||||
|
@ -66,7 +66,7 @@ LINK_OBJECT_SCHEMA = {
|
||||
},
|
||||
"suspend": {
|
||||
"type": "boolean",
|
||||
"description": "Link has been turned off"
|
||||
"description": "Suspend the link"
|
||||
},
|
||||
"filters": FILTER_OBJECT_SCHEMA,
|
||||
"capturing": {
|
||||
|
Loading…
Reference in New Issue
Block a user