Soft Patch Panel
 help / color / mirror / Atom feed
From: x-fn-spp-ml@ntt-tx.co.jp
To: spp@dpdk.org, ferruh.yigit@intel.com, yasufum.o@gmail.com
Subject: [spp] [PATCH v2 4/8] recipes: fix rcps for shutting down spp_vf
Date: Tue, 03 Mar 2020 18:25:17 +0900	[thread overview]
Message-ID: <20200303092521.22882-5-x-fn-spp-ml@ntt-tx.co.jp> (raw)
In-Reply-To: <20200227094422.7429-1-x-fn-spp-ml@ntt-tx.co.jp>

From: Hideyuki Yamashita <yamashita.hideyuki@ntt-tx.co.jp>

This patch provides the following two things.
1. File name change without content modification.
2. Remove 'flush' because the command is obsolete and
   put 'exit' command instead.

Signed-off-by: Hideyuki Yamashita <yamashita.hideyuki@ntt-tx.co.jp>
Signed-off-by: Naoki Takada <ntakada14@gmail.com>
---
 .../ssh_login/shutdown/1-del_mac_path1.rcps   |  3 ---
 .../ssh_login/shutdown/1_del_mac_path1.rcps   |  3 +++
 .../ssh_login/shutdown/2-del_ports_path1.rcps | 20 -------------------
 .../ssh_login/shutdown/2_del_ports_path1.rcps | 19 ++++++++++++++++++
 .../ssh_login/shutdown/3-stop_components.rcps |  7 -------
 .../ssh_login/shutdown/3_stop_components.rcps |  7 +++++++
 .../ssh_login/shutdown/4-del_mac_path2.rcps   |  3 ---
 .../ssh_login/shutdown/4_del_mac_path2.rcps   |  3 +++
 .../ssh_login/shutdown/5-del_ports_path2.rcps | 20 -------------------
 .../ssh_login/shutdown/5_del_ports_path2.rcps | 19 ++++++++++++++++++
 .../ssh_login/shutdown/6-stop_components.rcps |  7 -------
 .../ssh_login/shutdown/6_stop_components.rcps |  7 +++++++
 .../spp_vf/ssh_login/shutdown/7-flush.rcps    |  1 -
 .../spp_vf/ssh_login/shutdown/7_exit.rcps     |  1 +
 14 files changed, 59 insertions(+), 61 deletions(-)
 delete mode 100644 recipes/usecases/spp_vf/ssh_login/shutdown/1-del_mac_path1.rcps
 create mode 100644 recipes/usecases/spp_vf/ssh_login/shutdown/1_del_mac_path1.rcps
 delete mode 100644 recipes/usecases/spp_vf/ssh_login/shutdown/2-del_ports_path1.rcps
 create mode 100644 recipes/usecases/spp_vf/ssh_login/shutdown/2_del_ports_path1.rcps
 delete mode 100644 recipes/usecases/spp_vf/ssh_login/shutdown/3-stop_components.rcps
 create mode 100644 recipes/usecases/spp_vf/ssh_login/shutdown/3_stop_components.rcps
 delete mode 100644 recipes/usecases/spp_vf/ssh_login/shutdown/4-del_mac_path2.rcps
 create mode 100644 recipes/usecases/spp_vf/ssh_login/shutdown/4_del_mac_path2.rcps
 delete mode 100644 recipes/usecases/spp_vf/ssh_login/shutdown/5-del_ports_path2.rcps
 create mode 100644 recipes/usecases/spp_vf/ssh_login/shutdown/5_del_ports_path2.rcps
 delete mode 100644 recipes/usecases/spp_vf/ssh_login/shutdown/6-stop_components.rcps
 create mode 100644 recipes/usecases/spp_vf/ssh_login/shutdown/6_stop_components.rcps
 delete mode 100644 recipes/usecases/spp_vf/ssh_login/shutdown/7-flush.rcps
 create mode 100644 recipes/usecases/spp_vf/ssh_login/shutdown/7_exit.rcps

diff --git a/recipes/usecases/spp_vf/ssh_login/shutdown/1-del_mac_path1.rcps b/recipes/usecases/spp_vf/ssh_login/shutdown/1-del_mac_path1.rcps
deleted file mode 100644
index e642ada..0000000
--- a/recipes/usecases/spp_vf/ssh_login/shutdown/1-del_mac_path1.rcps
+++ /dev/null
@@ -1,3 +0,0 @@
-# Delete MAC address for path1
-sec 1;classifier_table del mac 51:54:00:12:34:56 ring:0
-sec 1;classifier_table del mac 51:54:00:12:34:58 ring:1
diff --git a/recipes/usecases/spp_vf/ssh_login/shutdown/1_del_mac_path1.rcps b/recipes/usecases/spp_vf/ssh_login/shutdown/1_del_mac_path1.rcps
new file mode 100644
index 0000000..6833798
--- /dev/null
+++ b/recipes/usecases/spp_vf/ssh_login/shutdown/1_del_mac_path1.rcps
@@ -0,0 +1,3 @@
+# Delete MAC address for path1
+vf 1; classifier_table del mac 52:54:00:12:34:56 ring:0
+vf 1; classifier_table del mac 52:54:00:12:34:58 ring:1
diff --git a/recipes/usecases/spp_vf/ssh_login/shutdown/2-del_ports_path1.rcps b/recipes/usecases/spp_vf/ssh_login/shutdown/2-del_ports_path1.rcps
deleted file mode 100644
index eea5b9e..0000000
--- a/recipes/usecases/spp_vf/ssh_login/shutdown/2-del_ports_path1.rcps
+++ /dev/null
@@ -1,20 +0,0 @@
-# classifier1
-sec 1;port del phy:0 rx classifier1
-sec 1;port del ring:0 tx classifier1
-sec 1;port del ring:1 tx classifier1
-# forwarder1
-sec 1;port del ring:0 rx forwarder1
-sec 1;port del vhost:0 tx forwarder1
-# forwarder2
-sec 1;port del ring:1 rx forwarder2
-sec 1;port del vhost:2 tx forwarder2
-# forwarder3
-sec 1;port del vhost:0 rx forwarder3
-sec 1;port del ring:2 tx forwarder3
-# forwarder4
-sec 1;port del vhost:2 rx forwarder4
-sec 1;port del ring:3 tx forwarder4
-# merger1
-sec 1;port del ring:2 rx merger1
-sec 1;port del ring:3 rx merger1
-sec 1;port del phy:0 tx merger1
diff --git a/recipes/usecases/spp_vf/ssh_login/shutdown/2_del_ports_path1.rcps b/recipes/usecases/spp_vf/ssh_login/shutdown/2_del_ports_path1.rcps
new file mode 100644
index 0000000..b396d66
--- /dev/null
+++ b/recipes/usecases/spp_vf/ssh_login/shutdown/2_del_ports_path1.rcps
@@ -0,0 +1,19 @@
+# Delete ports on classifier
+vf 1; port del phy:0 rx cls1
+vf 1; port del ring:0 tx cls1
+vf 1; port del ring:1 tx cls1
+
+# Delete ports on forwarders
+vf 1; port del ring:0 rx fwd1
+vf 1; port del vhost:0 tx fwd1
+vf 1; port del ring:1 rx fwd2
+vf 1; port del vhost:2 tx fwd2
+vf 1; port del vhost:0 rx fwd3
+vf 1; port del ring:2 tx fwd3
+vf 1; port del vhost:2 rx fwd4
+vf 1; port del ring:3 tx fwd4
+
+# Delete ports on merger
+vf 1; port del ring:2 rx mgr1
+vf 1; port del ring:3 rx mgr1
+vf 1; port del phy:0 tx mgr1
diff --git a/recipes/usecases/spp_vf/ssh_login/shutdown/3-stop_components.rcps b/recipes/usecases/spp_vf/ssh_login/shutdown/3-stop_components.rcps
deleted file mode 100644
index c29c740..0000000
--- a/recipes/usecases/spp_vf/ssh_login/shutdown/3-stop_components.rcps
+++ /dev/null
@@ -1,7 +0,0 @@
-# Stop component for path1
-sec 1;component stop classifier1
-sec 1;component stop forwarder1
-sec 1;component stop forwarder2
-sec 1;component stop forwarder3
-sec 1;component stop forwarder4
-sec 1;component stop merger1
diff --git a/recipes/usecases/spp_vf/ssh_login/shutdown/3_stop_components.rcps b/recipes/usecases/spp_vf/ssh_login/shutdown/3_stop_components.rcps
new file mode 100644
index 0000000..db55ae2
--- /dev/null
+++ b/recipes/usecases/spp_vf/ssh_login/shutdown/3_stop_components.rcps
@@ -0,0 +1,7 @@
+# Stop components for spp_vf
+vf 1; component stop cls1
+vf 1; component stop fwd1
+vf 1; component stop fwd2
+vf 1; component stop fwd3
+vf 1; component stop fwd4
+vf 1; component stop mgr1
diff --git a/recipes/usecases/spp_vf/ssh_login/shutdown/4-del_mac_path2.rcps b/recipes/usecases/spp_vf/ssh_login/shutdown/4-del_mac_path2.rcps
deleted file mode 100644
index 030a9c7..0000000
--- a/recipes/usecases/spp_vf/ssh_login/shutdown/4-del_mac_path2.rcps
+++ /dev/null
@@ -1,3 +0,0 @@
-# Delete MAC address for path2
-sec 1;classifier_table del mac 51:54:00:12:34:57 ring:4
-sec 1;classifier_table del mac 51:54:00:12:34:59 ring:5
diff --git a/recipes/usecases/spp_vf/ssh_login/shutdown/4_del_mac_path2.rcps b/recipes/usecases/spp_vf/ssh_login/shutdown/4_del_mac_path2.rcps
new file mode 100644
index 0000000..55ffca3
--- /dev/null
+++ b/recipes/usecases/spp_vf/ssh_login/shutdown/4_del_mac_path2.rcps
@@ -0,0 +1,3 @@
+# Delete MAC address for path2
+vf 1; classifier_table del mac 52:54:00:12:34:57 ring:4
+vf 1; classifier_table del mac 52:54:00:12:34:59 ring:5
diff --git a/recipes/usecases/spp_vf/ssh_login/shutdown/5-del_ports_path2.rcps b/recipes/usecases/spp_vf/ssh_login/shutdown/5-del_ports_path2.rcps
deleted file mode 100644
index 0d0a235..0000000
--- a/recipes/usecases/spp_vf/ssh_login/shutdown/5-del_ports_path2.rcps
+++ /dev/null
@@ -1,20 +0,0 @@
-# classifier2
-sec 1;port del phy:1 rx classifier2
-sec 1;port del ring:4 tx classifier2
-sec 1;port del ring:5 tx classifier2
-# forwarder5
-sec 1;port del ring:4 rx forwarder5
-sec 1;port del vhost:1 tx forwarder5
-# forwarder6
-sec 1;port del ring:5 rx forwarder6
-sec 1;port del vhost:3 tx forwarder6
-# forwarder7
-sec 1;port del vhost:1 rx forwarder7
-sec 1;port del ring:6 tx forwarder7
-# forwarder8
-sec 1;port del vhost:3 tx forwarder8
-sec 1;port del ring:7 rx forwarder8
-# merger2
-sec 1;port del ring:6 rx merger2
-sec 1;port del ring:7 rx merger2
-sec 1;port del phy:1 tx merger2
diff --git a/recipes/usecases/spp_vf/ssh_login/shutdown/5_del_ports_path2.rcps b/recipes/usecases/spp_vf/ssh_login/shutdown/5_del_ports_path2.rcps
new file mode 100644
index 0000000..60b5ac8
--- /dev/null
+++ b/recipes/usecases/spp_vf/ssh_login/shutdown/5_del_ports_path2.rcps
@@ -0,0 +1,19 @@
+# Delete ports on cls2
+vf 1; port del phy:1 rx cls2
+vf 1; port del ring:4 tx cls2
+vf 1; port del ring:5 tx cls2
+
+# Delete ports on fwd2
+vf 1; port del ring:4 rx fwd5
+vf 1; port del vhost:1 tx fwd5
+vf 1; port del ring:5 rx fwd6
+vf 1; port del vhost:3 tx fwd6
+vf 1; port del vhost:1 rx fwd7
+vf 1; port del ring:6 tx fwd7
+vf 1; port del vhost:3 rx fwd8
+vf 1; port del ring:7 tx fwd8
+
+# Delete ports on mgr2
+vf 1; port del ring:6 rx mgr2
+vf 1; port del ring:7 rx mgr2
+vf 1; port del phy:1 tx mgr2
diff --git a/recipes/usecases/spp_vf/ssh_login/shutdown/6-stop_components.rcps b/recipes/usecases/spp_vf/ssh_login/shutdown/6-stop_components.rcps
deleted file mode 100644
index 535f02b..0000000
--- a/recipes/usecases/spp_vf/ssh_login/shutdown/6-stop_components.rcps
+++ /dev/null
@@ -1,7 +0,0 @@
-# Stop component to spp_vf
-sec 1;component stop classifier2
-sec 1;component stop forwarder5
-sec 1;component stop forwarder6
-sec 1;component stop forwarder7
-sec 1;component stop forwarder8
-sec 1;component stop merger2
diff --git a/recipes/usecases/spp_vf/ssh_login/shutdown/6_stop_components.rcps b/recipes/usecases/spp_vf/ssh_login/shutdown/6_stop_components.rcps
new file mode 100644
index 0000000..52a811a
--- /dev/null
+++ b/recipes/usecases/spp_vf/ssh_login/shutdown/6_stop_components.rcps
@@ -0,0 +1,7 @@
+# Stop components to spp_vf
+vf 1; component stop cls2
+vf 1; component stop fwd5
+vf 1; component stop fwd6
+vf 1; component stop fwd7
+vf 1; component stop fwd8
+vf 1; component stop mgr2
diff --git a/recipes/usecases/spp_vf/ssh_login/shutdown/7-flush.rcps b/recipes/usecases/spp_vf/ssh_login/shutdown/7-flush.rcps
deleted file mode 100644
index 9ea2237..0000000
--- a/recipes/usecases/spp_vf/ssh_login/shutdown/7-flush.rcps
+++ /dev/null
@@ -1 +0,0 @@
-sec 1;flush
diff --git a/recipes/usecases/spp_vf/ssh_login/shutdown/7_exit.rcps b/recipes/usecases/spp_vf/ssh_login/shutdown/7_exit.rcps
new file mode 100644
index 0000000..5a70766
--- /dev/null
+++ b/recipes/usecases/spp_vf/ssh_login/shutdown/7_exit.rcps
@@ -0,0 +1 @@
+vf 1; exit
-- 
2.17.1


  parent reply	other threads:[~2020-03-03  9:25 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-27  9:44 [spp] [PATCH 0/8] Update docs and rcps x-fn-spp-ml
2020-02-27  9:44 ` [spp] [PATCH 1/8] recipes: add vhost related rcps for spp_nfv x-fn-spp-ml
2020-02-27  9:44 ` [spp] [PATCH 2/8] recipes: fix rcps for setting up spp_vf x-fn-spp-ml
2020-02-27  9:44 ` [spp] [PATCH 3/8] recipes: fix typos " x-fn-spp-ml
2020-02-27  9:44 ` [spp] [PATCH 4/8] recipes: fix rcps for shutting down spp_vf x-fn-spp-ml
2020-02-27  9:44 ` [spp] [PATCH 5/8] recipes: add rcps for spp_mirror x-fn-spp-ml
2020-02-27  9:44 ` [spp] [PATCH 6/8] recipes: add rcps for multiple_nodes x-fn-spp-ml
2020-02-27  9:44 ` [spp] [PATCH 7/8] docs: adds sample Domain XML file for vhost x-fn-spp-ml
2020-02-27  9:44 ` [spp] [PATCH 8/8] docs: fix incorrect commands in usecases x-fn-spp-ml
2020-02-28  8:49 ` [spp] [PATCH 0/8] Update docs and rcps Yasufumi Ogawa
2020-03-03  9:25 ` [spp] [PATCH v2 " x-fn-spp-ml
2020-03-05  1:26   ` Yasufumi Ogawa
2020-03-03  9:25 ` [spp] [PATCH v2 1/8] recipes: add vhost related rcps for spp_nfv x-fn-spp-ml
2020-03-03  9:25 ` [spp] [PATCH v2 2/8] recipes: fix rcps for setting up spp_vf x-fn-spp-ml
2020-03-03  9:25 ` [spp] [PATCH v2 3/8] recipes: fix typos " x-fn-spp-ml
2020-03-03  9:25 ` x-fn-spp-ml [this message]
2020-03-03  9:25 ` [spp] [PATCH v2 5/8] recipes: add rcps for spp_mirror x-fn-spp-ml
2020-03-03  9:25 ` [spp] [PATCH v2 6/8] recipes: add rcps for multiple_nodes x-fn-spp-ml
2020-03-03  9:25 ` [spp] [PATCH v2 7/8] docs: adds sample Domain XML file for vhost x-fn-spp-ml
2020-03-03  9:25 ` [spp] [PATCH v2 8/8] docs: fix incorrect commands in usecases x-fn-spp-ml

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200303092521.22882-5-x-fn-spp-ml@ntt-tx.co.jp \
    --to=x-fn-spp-ml@ntt-tx.co.jp \
    --cc=ferruh.yigit@intel.com \
    --cc=spp@dpdk.org \
    --cc=yasufum.o@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).