mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-09-25 21:30:21 +03:00
fix: update search_fields examples to use existing field names
This commit is contained in:
parent
73e0de7706
commit
09b0fbcfea
@ -83,7 +83,8 @@ class PacketAnalysisTool(BaseTool):
|
|||||||
|
|
||||||
Input (JSON format) — field search mode (no capture needed):
|
Input (JSON format) — field search mode (no capture needed):
|
||||||
- action (str): "search_fields"
|
- action (str): "search_fields"
|
||||||
- query (str): Single keyword for literal substring search (e.g., "ospf.lsa", "bgp")
|
- query (str): Single keyword, e.g. "ospf.lsa", "bgp.open", "bgp.type"
|
||||||
|
Use dot-notation like "protocol.field" for precise results.
|
||||||
|
|
||||||
Common tshark argument patterns:
|
Common tshark argument patterns:
|
||||||
-Y "<filter>" Display filter
|
-Y "<filter>" Display filter
|
||||||
@ -98,10 +99,11 @@ class PacketAnalysisTool(BaseTool):
|
|||||||
Instead of analysis, you can search tshark's field registry directly for
|
Instead of analysis, you can search tshark's field registry directly for
|
||||||
valid field names:
|
valid field names:
|
||||||
{"action": "search_fields", "query": "ospf.lsa"}
|
{"action": "search_fields", "query": "ospf.lsa"}
|
||||||
{"action": "search_fields", "query": "bgp"}
|
{"action": "search_fields", "query": "bgp.open"}
|
||||||
Uses literal substring matching (not regex). Returns matching field names,
|
Uses literal substring matching (not regex). Only one keyword allowed.
|
||||||
types, and descriptions. Use this to find correct -e field names before
|
Use dot-notation like "ospf", "ospf.lsa", "bgp.peer" for precise results.
|
||||||
building tshark_args.
|
Returns matching field names, types, and descriptions. Use this to find
|
||||||
|
correct -e field names before building tshark_args.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user