summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHideyuki Yamashita <yamashita.hideyuki@po.ntt-tx.co.jp>2019-09-10 10:38:10 +0900
committerYasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>2019-09-10 18:08:23 +0900
commitc8a41ff91987315bf1ed081f67af7f9fa3185e3c (patch)
tree73d4d7e62fcaceb8470fcc28bba23878286b3b06
parentafe5b729206a4c89b6c368addbc904e0cbe3bc1b (diff)
downloadspp-c8a41ff91987315bf1ed081f67af7f9fa3185e3c.zip
spp-c8a41ff91987315bf1ed081f67af7f9fa3185e3c.tar.gz
spp-c8a41ff91987315bf1ed081f67af7f9fa3185e3c.tar.xz
recipes: add spp_mirror usecases
This patch is to provide recipe scripts for spp_pcap usecase "Duplicate Packets". Signed-off-by: Hideyuki Yamashita <yamashita.hideyuki@po.ntt-tx.co.jp> Signed-off-by: Naoki Takada <ntakada14@gmail.com> Acked-by: Yasufumi Ogawa <yasufum.o@gmail.com>
-rw-r--r--recipes/usecases/spp_mirror/duplicate/1_start_dup.rcps7
-rw-r--r--recipes/usecases/spp_mirror/duplicate/2_stop_dup.rcps10
2 files changed, 17 insertions, 0 deletions
diff --git a/recipes/usecases/spp_mirror/duplicate/1_start_dup.rcps b/recipes/usecases/spp_mirror/duplicate/1_start_dup.rcps
new file mode 100644
index 0000000..5549dd3
--- /dev/null
+++ b/recipes/usecases/spp_mirror/duplicate/1_start_dup.rcps
@@ -0,0 +1,7 @@
+# Start component
+mirror 1; component start mir 2 mirror
+
+# Add ports
+mirror 1; port add phy:0 rx mir
+mirror 1; port add phy:1 tx mir
+mirror 1; port add phy:2 tx mir
diff --git a/recipes/usecases/spp_mirror/duplicate/2_stop_dup.rcps b/recipes/usecases/spp_mirror/duplicate/2_stop_dup.rcps
new file mode 100644
index 0000000..d13085c
--- /dev/null
+++ b/recipes/usecases/spp_mirror/duplicate/2_stop_dup.rcps
@@ -0,0 +1,10 @@
+# Delete ports
+mirror 1; port del phy:0 rx mir
+mirror 1; port del phy:1 tx mir
+mirror 1; port del phy:2 tx mir
+
+# Stop component
+mirror 1; component stop mir
+
+# Exit spp_mirror
+mirror 1; exit