summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHideyuki Yamashita <yamashita.hideyuki@po.ntt-tx.co.jp>2019-09-10 10:35:10 +0900
committerYasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>2019-09-10 17:53:58 +0900
commitde28e154865aa65fc1c9f17d129bd8ab2a0cffcd (patch)
tree8658c211eeb66967d2589d1fbbf033747cd490e0
parentbbd1ea3b07d74c6f3b640a96c2b2b243e68c1551 (diff)
downloadspp-de28e154865aa65fc1c9f17d129bd8ab2a0cffcd.zip
spp-de28e154865aa65fc1c9f17d129bd8ab2a0cffcd.tar.gz
spp-de28e154865aa65fc1c9f17d129bd8ab2a0cffcd.tar.xz
recipes: update spp_nfv usecases
To enable user to run usecases, update recipe scripts of spp_nfv for the latest docs. Some of usecases are consists of several scripts under sub-directories so that user can run step by step. - Single spp_nfv - Dual spp_nfv - Dual spp_nfv with Ring PMD - Single spp_nfv with PCAP PMD 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_nfv/dual/l2fwd/1_dual_bidir.rcps (renamed from recipes/usecases/spp_nfv/dual_bidir.rcps)6
-rw-r--r--recipes/usecases/spp_nfv/dual/l2fwd/2_clean.rcps7
-rw-r--r--recipes/usecases/spp_nfv/dual/loopback/1_dual_loopback.rcps (renamed from recipes/usecases/spp_nfv/dual_loopback.rcps)6
-rw-r--r--recipes/usecases/spp_nfv/dual/loopback/2_clean.rcps7
-rw-r--r--recipes/usecases/spp_nfv/dual_with_ring/bi_directional_l2fwd/1_ring_dual_bidir.rcps (renamed from recipes/usecases/spp_nfv/ring_dual_bidir.rcps)9
-rw-r--r--recipes/usecases/spp_nfv/dual_with_ring/bi_directional_l2fwd/2_clean.rcps13
-rw-r--r--recipes/usecases/spp_nfv/dual_with_ring/ring_pmd/1_add_ring.rcps3
-rw-r--r--recipes/usecases/spp_nfv/dual_with_ring/ring_pmd/2_del_ring.rcps3
-rw-r--r--recipes/usecases/spp_nfv/dual_with_ring/uni_directional_l2fwd/1_ring_dual_unidir.rcps (renamed from recipes/usecases/spp_nfv/ring_dual_unidir.rcps)8
-rw-r--r--recipes/usecases/spp_nfv/dual_with_ring/uni_directional_l2fwd/2_clean.rcps11
-rw-r--r--recipes/usecases/spp_nfv/single/l2fwd/1_single_bidir.rcps (renamed from recipes/usecases/spp_nfv/single_bidir.rcps)5
-rw-r--r--recipes/usecases/spp_nfv/single/l2fwd/2_clean.rcps5
-rw-r--r--recipes/usecases/spp_nfv/single/loopback/1_single_loopback.rcps (renamed from recipes/usecases/spp_nfv/single_loopback.rcps)5
-rw-r--r--recipes/usecases/spp_nfv/single/loopback/2_clean.rcps5
-rw-r--r--recipes/usecases/spp_nfv/single_with_pcap/incoming/1_add_pcap.rcps5
-rw-r--r--recipes/usecases/spp_nfv/single_with_pcap/incoming/2_capture_incoming.rcps6
-rw-r--r--recipes/usecases/spp_nfv/single_with_pcap/incoming/3_clean.rcps8
-rw-r--r--recipes/usecases/spp_nfv/single_with_pcap/outgoing/1_add_pcap.rcps5
-rw-r--r--recipes/usecases/spp_nfv/single_with_pcap/outgoing/2_restore_dumped.rcps6
-rw-r--r--recipes/usecases/spp_nfv/single_with_pcap/outgoing/3_clean.rcps8
-rw-r--r--recipes/usecases/spp_nfv/vhost_unidir.rcps5
21 files changed, 125 insertions, 11 deletions
diff --git a/recipes/usecases/spp_nfv/dual_bidir.rcps b/recipes/usecases/spp_nfv/dual/l2fwd/1_dual_bidir.rcps
index ae60beb..cf8827e 100644
--- a/recipes/usecases/spp_nfv/dual_bidir.rcps
+++ b/recipes/usecases/spp_nfv/dual/l2fwd/1_dual_bidir.rcps
@@ -1,5 +1,9 @@
-# Configure Two spp_nfv as L2fwd
+# Configure as L2fwd
nfv 1; patch phy:0 phy:1
nfv 2; patch phy:1 phy:0
+
+# Start forwarding
nfv 1; forward
nfv 2; forward
+nfv 1; status
+nfv 2; status
diff --git a/recipes/usecases/spp_nfv/dual/l2fwd/2_clean.rcps b/recipes/usecases/spp_nfv/dual/l2fwd/2_clean.rcps
new file mode 100644
index 0000000..29fbe7b
--- /dev/null
+++ b/recipes/usecases/spp_nfv/dual/l2fwd/2_clean.rcps
@@ -0,0 +1,7 @@
+# Stop forwarding
+nfv 1; stop
+nfv 2; stop
+
+# Clear all of patches
+nfv 1; patch reset
+nfv 2; patch reset
diff --git a/recipes/usecases/spp_nfv/dual_loopback.rcps b/recipes/usecases/spp_nfv/dual/loopback/1_dual_loopback.rcps
index 5b00de7..b365d1c 100644
--- a/recipes/usecases/spp_nfv/dual_loopback.rcps
+++ b/recipes/usecases/spp_nfv/dual/loopback/1_dual_loopback.rcps
@@ -1,5 +1,9 @@
-#Configure two spp_nfv for Loopback
+# Configure as Loopback
nfv 1; patch phy:0 phy:0
nfv 2; patch phy:1 phy:1
+
+# Start forwarding
nfv 1; forward
nfv 2; forward
+nfv 1; status
+nfv 2; status
diff --git a/recipes/usecases/spp_nfv/dual/loopback/2_clean.rcps b/recipes/usecases/spp_nfv/dual/loopback/2_clean.rcps
new file mode 100644
index 0000000..29fbe7b
--- /dev/null
+++ b/recipes/usecases/spp_nfv/dual/loopback/2_clean.rcps
@@ -0,0 +1,7 @@
+# Stop forwarding
+nfv 1; stop
+nfv 2; stop
+
+# Clear all of patches
+nfv 1; patch reset
+nfv 2; patch reset
diff --git a/recipes/usecases/spp_nfv/ring_dual_bidir.rcps b/recipes/usecases/spp_nfv/dual_with_ring/bi_directional_l2fwd/1_ring_dual_bidir.rcps
index 2fff7b3..6843d60 100644
--- a/recipes/usecases/spp_nfv/ring_dual_bidir.rcps
+++ b/recipes/usecases/spp_nfv/dual_with_ring/bi_directional_l2fwd/1_ring_dual_bidir.rcps
@@ -1,12 +1,19 @@
-# Bi-directional with two rings
+# Add rings to nfv 1
nfv 1; add ring:0
nfv 1; add ring:1
+
+# Add rings to nfv 2
nfv 2; add ring:0
nfv 2; add ring:1
+# Configure as Bi-Directional L2fwd
nfv 1; patch phy:0 ring:0
nfv 1; patch ring:1 phy:0
nfv 2; patch phy:1 ring:1
nfv 2; patch ring:0 phy:1
+
+# Start forwarding
nfv 1; forward
nfv 2; forward
+nfv 1; status
+nfv 2; status
diff --git a/recipes/usecases/spp_nfv/dual_with_ring/bi_directional_l2fwd/2_clean.rcps b/recipes/usecases/spp_nfv/dual_with_ring/bi_directional_l2fwd/2_clean.rcps
new file mode 100644
index 0000000..7f58e32
--- /dev/null
+++ b/recipes/usecases/spp_nfv/dual_with_ring/bi_directional_l2fwd/2_clean.rcps
@@ -0,0 +1,13 @@
+# Stop forwarding
+nfv 1; stop
+nfv 2; stop
+
+# Clear all of patches
+nfv 1; patch reset
+nfv 2; patch reset
+
+# Delete all rings
+nfv 1; del ring:0
+nfv 1; del ring:1
+nfv 2; del ring:0
+nfv 2; del ring:1
diff --git a/recipes/usecases/spp_nfv/dual_with_ring/ring_pmd/1_add_ring.rcps b/recipes/usecases/spp_nfv/dual_with_ring/ring_pmd/1_add_ring.rcps
new file mode 100644
index 0000000..bc31726
--- /dev/null
+++ b/recipes/usecases/spp_nfv/dual_with_ring/ring_pmd/1_add_ring.rcps
@@ -0,0 +1,3 @@
+# Add ring
+nfv 1; add ring:0
+nfv 1; status
diff --git a/recipes/usecases/spp_nfv/dual_with_ring/ring_pmd/2_del_ring.rcps b/recipes/usecases/spp_nfv/dual_with_ring/ring_pmd/2_del_ring.rcps
new file mode 100644
index 0000000..cc5b479
--- /dev/null
+++ b/recipes/usecases/spp_nfv/dual_with_ring/ring_pmd/2_del_ring.rcps
@@ -0,0 +1,3 @@
+# Delete ring
+nfv 1; del ring:0
+nfv 1; status
diff --git a/recipes/usecases/spp_nfv/ring_dual_unidir.rcps b/recipes/usecases/spp_nfv/dual_with_ring/uni_directional_l2fwd/1_ring_dual_unidir.rcps
index a9fd883..e7d1b83 100644
--- a/recipes/usecases/spp_nfv/ring_dual_unidir.rcps
+++ b/recipes/usecases/spp_nfv/dual_with_ring/uni_directional_l2fwd/1_ring_dual_unidir.rcps
@@ -1,7 +1,13 @@
-# Uni-Directional L2fwd with ring
+# Add rings
nfv 1; add ring:0
nfv 2; add ring:0
+
+# Configure as Uni-Directional L2fwd
nfv 1; patch phy:0 ring:0
nfv 2; patch ring:0 phy:1
+
+# Start forwarding
nfv 1; forward
nfv 2; forward
+nfv 1; status
+nfv 2; status
diff --git a/recipes/usecases/spp_nfv/dual_with_ring/uni_directional_l2fwd/2_clean.rcps b/recipes/usecases/spp_nfv/dual_with_ring/uni_directional_l2fwd/2_clean.rcps
new file mode 100644
index 0000000..551eacb
--- /dev/null
+++ b/recipes/usecases/spp_nfv/dual_with_ring/uni_directional_l2fwd/2_clean.rcps
@@ -0,0 +1,11 @@
+# Stop forwarding
+nfv 1; stop
+nfv 2; stop
+
+# Clear all of patches
+nfv 1; patch reset
+nfv 2; patch reset
+
+# Delete rings
+nfv 1; del ring:0
+nfv 2; del ring:0
diff --git a/recipes/usecases/spp_nfv/single_bidir.rcps b/recipes/usecases/spp_nfv/single/l2fwd/1_single_bidir.rcps
index 22905a7..c35da98 100644
--- a/recipes/usecases/spp_nfv/single_bidir.rcps
+++ b/recipes/usecases/spp_nfv/single/l2fwd/1_single_bidir.rcps
@@ -1,4 +1,7 @@
-# Configure spp_nfv as L2fwd
+# Configure as L2fwd
nfv 1; patch phy:0 phy:1
nfv 1; patch phy:1 phy:0
+
+# Start forwarding
nfv 1; forward
+nfv 1; status
diff --git a/recipes/usecases/spp_nfv/single/l2fwd/2_clean.rcps b/recipes/usecases/spp_nfv/single/l2fwd/2_clean.rcps
new file mode 100644
index 0000000..674d5bf
--- /dev/null
+++ b/recipes/usecases/spp_nfv/single/l2fwd/2_clean.rcps
@@ -0,0 +1,5 @@
+# Stop forwarding
+nfv 1; stop
+
+# Clear patch
+nfv 1; patch reset
diff --git a/recipes/usecases/spp_nfv/single_loopback.rcps b/recipes/usecases/spp_nfv/single/loopback/1_single_loopback.rcps
index 7c70b23..3750f4d 100644
--- a/recipes/usecases/spp_nfv/single_loopback.rcps
+++ b/recipes/usecases/spp_nfv/single/loopback/1_single_loopback.rcps
@@ -1,4 +1,7 @@
-# Configure spp_nfv for Loopback
+# Configure as Loopback
nfv 1; patch phy:0 phy:0
nfv 1; patch phy:1 phy:1
+
+# Start forwarding
nfv 1; forward
+nfv 1; status
diff --git a/recipes/usecases/spp_nfv/single/loopback/2_clean.rcps b/recipes/usecases/spp_nfv/single/loopback/2_clean.rcps
new file mode 100644
index 0000000..674d5bf
--- /dev/null
+++ b/recipes/usecases/spp_nfv/single/loopback/2_clean.rcps
@@ -0,0 +1,5 @@
+# Stop forwarding
+nfv 1; stop
+
+# Clear patch
+nfv 1; patch reset
diff --git a/recipes/usecases/spp_nfv/single_with_pcap/incoming/1_add_pcap.rcps b/recipes/usecases/spp_nfv/single_with_pcap/incoming/1_add_pcap.rcps
new file mode 100644
index 0000000..1975313
--- /dev/null
+++ b/recipes/usecases/spp_nfv/single_with_pcap/incoming/1_add_pcap.rcps
@@ -0,0 +1,5 @@
+# Add pcap
+nfv 1; add pcap:1
+
+# check pcap file
+ls /tmp
diff --git a/recipes/usecases/spp_nfv/single_with_pcap/incoming/2_capture_incoming.rcps b/recipes/usecases/spp_nfv/single_with_pcap/incoming/2_capture_incoming.rcps
new file mode 100644
index 0000000..0bf8f24
--- /dev/null
+++ b/recipes/usecases/spp_nfv/single_with_pcap/incoming/2_capture_incoming.rcps
@@ -0,0 +1,6 @@
+# Capture incoming packets from phy:0
+nfv 1; patch phy:0 pcap:1
+
+# Start forwarding
+nfv 1; forward
+nfv 1; status
diff --git a/recipes/usecases/spp_nfv/single_with_pcap/incoming/3_clean.rcps b/recipes/usecases/spp_nfv/single_with_pcap/incoming/3_clean.rcps
new file mode 100644
index 0000000..f39c904
--- /dev/null
+++ b/recipes/usecases/spp_nfv/single_with_pcap/incoming/3_clean.rcps
@@ -0,0 +1,8 @@
+# Stop forwarding
+nfv 1; stop
+
+# Clear patch
+nfv 1; patch reset
+
+# Delete pcap
+nfv 1; del pcap:1
diff --git a/recipes/usecases/spp_nfv/single_with_pcap/outgoing/1_add_pcap.rcps b/recipes/usecases/spp_nfv/single_with_pcap/outgoing/1_add_pcap.rcps
new file mode 100644
index 0000000..0aea0f8
--- /dev/null
+++ b/recipes/usecases/spp_nfv/single_with_pcap/outgoing/1_add_pcap.rcps
@@ -0,0 +1,5 @@
+# Add pcap
+nfv 2; add pcap:2
+
+# check pcap file
+ls /tmp
diff --git a/recipes/usecases/spp_nfv/single_with_pcap/outgoing/2_restore_dumped.rcps b/recipes/usecases/spp_nfv/single_with_pcap/outgoing/2_restore_dumped.rcps
new file mode 100644
index 0000000..d5eb775
--- /dev/null
+++ b/recipes/usecases/spp_nfv/single_with_pcap/outgoing/2_restore_dumped.rcps
@@ -0,0 +1,6 @@
+# Restore packets
+nfv 2; patch pcap:2 phy:1
+
+# Start forwarding
+nfv 2; forward
+nfv 2; status
diff --git a/recipes/usecases/spp_nfv/single_with_pcap/outgoing/3_clean.rcps b/recipes/usecases/spp_nfv/single_with_pcap/outgoing/3_clean.rcps
new file mode 100644
index 0000000..abecf9f
--- /dev/null
+++ b/recipes/usecases/spp_nfv/single_with_pcap/outgoing/3_clean.rcps
@@ -0,0 +1,8 @@
+# Stop forwarding
+nfv 2; stop
+
+# Clear patch
+nfv 2; patch reset
+
+# Delete pcap
+nfv 2; del pcap:2
diff --git a/recipes/usecases/spp_nfv/vhost_unidir.rcps b/recipes/usecases/spp_nfv/vhost_unidir.rcps
deleted file mode 100644
index eaca4e9..0000000
--- a/recipes/usecases/spp_nfv/vhost_unidir.rcps
+++ /dev/null
@@ -1,5 +0,0 @@
-# Single spp_nfv with Vhost PMD
-nfv 1; add vhost:0
-nfv 1; patch phy:0 vhost:0
-nfv 1; patch vhost:1 phy:1
-nfv 1; forward