aboutsummaryrefslogtreecommitdiffstats
path: root/extras/packetforge/README.rst
diff options
context:
space:
mode:
authorTing Xu <ting.xu@intel.com>2023-03-16 01:22:33 +0000
committerDave Wallace <dwallacelf@gmail.com>2023-05-15 20:20:12 +0000
commitf34420ff1169746c07946940ed165416a5908f06 (patch)
treece4c5f8b9cc7db95d7915955326d4524db21902b /extras/packetforge/README.rst
parent9794326125264dc6543325ee10f58c3862c70095 (diff)
packetforge: add option to show spec and mask only
In some cases with Generic FLow, it is only required to show the pattern of spec and mask, but no need to add the flow. Therefore, add an option in packetforge so that users can show spec and mask only. Type: improvement Signed-off-by: Ting Xu <ting.xu@intel.com> Change-Id: I7b3040689eb82d0b58924712ee6fc9cfa0a42fa1
Diffstat (limited to 'extras/packetforge/README.rst')
-rw-r--r--extras/packetforge/README.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/extras/packetforge/README.rst b/extras/packetforge/README.rst
index f477c0bab38..6d959967af4 100644
--- a/extras/packetforge/README.rst
+++ b/extras/packetforge/README.rst
@@ -51,6 +51,17 @@ Users can create their own json files according to examples and Spec.
::
+ $ python flow_create.py --show -p "mac()/ipv4(src=1.1.1.1,dst=2.2.2.2)/udp()"
+
+ $ python flow_parse.py --show -p "mac()/ipv4(src=1.1.1.1,dst=2.2.2.2)/udp()"
+
+These commands can show the forging result of spec and mask only, without invoving
+VPP. No need to configure actions and interfaces. Users can get the binary string
+of spec and mask from a flow pattern if needed. flow_parse.py can be used without
+VAPI installed.
+
+::
+
$ show flow entry
It is a vnet/flow command, used in VPP CLI. It can show the added flow rules