Soft Patch Panel
 help / color / mirror / Atom feed
From: ogawa.yasufumi@lab.ntt.co.jp
To: ferruh.yigit@intel.com, spp@dpdk.org
Cc: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
Subject: [spp] [PATCH 1/3] recipes: add recipes directory
Date: Wed, 13 Jun 2018 11:44:57 +0900	[thread overview]
Message-ID: <20180613024459.31031-2-ogawa.yasufumi@lab.ntt.co.jp> (raw)
In-Reply-To: <20180613024459.31031-1-ogawa.yasufumi@lab.ntt.co.jp>

From: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>

This patch is to introduce recipes. Recipe is a set of instruction
to configure SPP network. This configuration is a set of SPP command
actually.

Recipe is loaded with 'playback' command to restore the network
configuration. This is an example.

    spp > playback recipes/spp/1nfv_bi.config

Some of recipes are already included in docs/, but moved to recipes/
by this update.

Signed-off-by: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
---
 .../spp/1nfv_1vm_bi.config                    |  0
 .../spp/1nfv_1vm_uni.config                   |  0
 .../command => recipes}/spp/1nfv_bi.config    |  0
 .../spp/2nfv_1ring_uni.config                 |  0
 .../spp/2nfv_1vm_bi.config                    |  0
 .../command => recipes}/spp/2nfv_bi.config    |  0
 .../usecase1/1-start_components_path1.config  |  0
 .../spp_vf/usecase1/2-add_ports_path1.config  |  0
 .../spp_vf/usecase1/3-reg_mac_path1.config    |  0
 .../usecase1/4-start_components_path2.config  |  0
 .../spp_vf/usecase1/5-add_ports_path2.config  |  0
 .../spp_vf/usecase1/6-reg_mac_path2.config    |  0
 recipes/sppc/l2fwd.config                     | 22 ++++++++++++++
 recipes/sppc/load_balancer.config             | 30 +++++++++++++++++++
 14 files changed, 52 insertions(+)
 rename {docs/samples/command => recipes}/spp/1nfv_1vm_bi.config (100%)
 rename {docs/samples/command => recipes}/spp/1nfv_1vm_uni.config (100%)
 rename {docs/samples/command => recipes}/spp/1nfv_bi.config (100%)
 rename {docs/samples/command => recipes}/spp/2nfv_1ring_uni.config (100%)
 rename {docs/samples/command => recipes}/spp/2nfv_1vm_bi.config (100%)
 rename {docs/samples/command => recipes}/spp/2nfv_bi.config (100%)
 rename {docs/samples/command => recipes}/spp_vf/usecase1/1-start_components_path1.config (100%)
 rename {docs/samples/command => recipes}/spp_vf/usecase1/2-add_ports_path1.config (100%)
 rename {docs/samples/command => recipes}/spp_vf/usecase1/3-reg_mac_path1.config (100%)
 rename {docs/samples/command => recipes}/spp_vf/usecase1/4-start_components_path2.config (100%)
 rename {docs/samples/command => recipes}/spp_vf/usecase1/5-add_ports_path2.config (100%)
 rename {docs/samples/command => recipes}/spp_vf/usecase1/6-reg_mac_path2.config (100%)
 create mode 100644 recipes/sppc/l2fwd.config
 create mode 100644 recipes/sppc/load_balancer.config

diff --git a/docs/samples/command/spp/1nfv_1vm_bi.config b/recipes/spp/1nfv_1vm_bi.config
similarity index 100%
rename from docs/samples/command/spp/1nfv_1vm_bi.config
rename to recipes/spp/1nfv_1vm_bi.config
diff --git a/docs/samples/command/spp/1nfv_1vm_uni.config b/recipes/spp/1nfv_1vm_uni.config
similarity index 100%
rename from docs/samples/command/spp/1nfv_1vm_uni.config
rename to recipes/spp/1nfv_1vm_uni.config
diff --git a/docs/samples/command/spp/1nfv_bi.config b/recipes/spp/1nfv_bi.config
similarity index 100%
rename from docs/samples/command/spp/1nfv_bi.config
rename to recipes/spp/1nfv_bi.config
diff --git a/docs/samples/command/spp/2nfv_1ring_uni.config b/recipes/spp/2nfv_1ring_uni.config
similarity index 100%
rename from docs/samples/command/spp/2nfv_1ring_uni.config
rename to recipes/spp/2nfv_1ring_uni.config
diff --git a/docs/samples/command/spp/2nfv_1vm_bi.config b/recipes/spp/2nfv_1vm_bi.config
similarity index 100%
rename from docs/samples/command/spp/2nfv_1vm_bi.config
rename to recipes/spp/2nfv_1vm_bi.config
diff --git a/docs/samples/command/spp/2nfv_bi.config b/recipes/spp/2nfv_bi.config
similarity index 100%
rename from docs/samples/command/spp/2nfv_bi.config
rename to recipes/spp/2nfv_bi.config
diff --git a/docs/samples/command/spp_vf/usecase1/1-start_components_path1.config b/recipes/spp_vf/usecase1/1-start_components_path1.config
similarity index 100%
rename from docs/samples/command/spp_vf/usecase1/1-start_components_path1.config
rename to recipes/spp_vf/usecase1/1-start_components_path1.config
diff --git a/docs/samples/command/spp_vf/usecase1/2-add_ports_path1.config b/recipes/spp_vf/usecase1/2-add_ports_path1.config
similarity index 100%
rename from docs/samples/command/spp_vf/usecase1/2-add_ports_path1.config
rename to recipes/spp_vf/usecase1/2-add_ports_path1.config
diff --git a/docs/samples/command/spp_vf/usecase1/3-reg_mac_path1.config b/recipes/spp_vf/usecase1/3-reg_mac_path1.config
similarity index 100%
rename from docs/samples/command/spp_vf/usecase1/3-reg_mac_path1.config
rename to recipes/spp_vf/usecase1/3-reg_mac_path1.config
diff --git a/docs/samples/command/spp_vf/usecase1/4-start_components_path2.config b/recipes/spp_vf/usecase1/4-start_components_path2.config
similarity index 100%
rename from docs/samples/command/spp_vf/usecase1/4-start_components_path2.config
rename to recipes/spp_vf/usecase1/4-start_components_path2.config
diff --git a/docs/samples/command/spp_vf/usecase1/5-add_ports_path2.config b/recipes/spp_vf/usecase1/5-add_ports_path2.config
similarity index 100%
rename from docs/samples/command/spp_vf/usecase1/5-add_ports_path2.config
rename to recipes/spp_vf/usecase1/5-add_ports_path2.config
diff --git a/docs/samples/command/spp_vf/usecase1/6-reg_mac_path2.config b/recipes/spp_vf/usecase1/6-reg_mac_path2.config
similarity index 100%
rename from docs/samples/command/spp_vf/usecase1/6-reg_mac_path2.config
rename to recipes/spp_vf/usecase1/6-reg_mac_path2.config
diff --git a/recipes/sppc/l2fwd.config b/recipes/sppc/l2fwd.config
new file mode 100644
index 0000000..bb434ff
--- /dev/null
+++ b/recipes/sppc/l2fwd.config
@@ -0,0 +1,22 @@
+sec 1;add vhost 1
+sec 2;add vhost 2
+sec 3;add vhost 3
+sec 4;add vhost 4
+
+sec 1;add ring 1
+sec 2;add ring 0
+sec 3;add ring 0
+sec 4;add ring 1
+
+topo_subgraph add c1 vhost:1;vhost:2
+topo_subgraph add c2 vhost:3;vhost:4
+
+sec 1;patch ring:1 vhost:1
+sec 2;patch vhost:2 ring:0
+sec 3;patch ring:0 vhost:3
+sec 4;patch vhost:4 ring:1
+
+sec 1;forward
+sec 2;forward
+sec 3;forward
+sec 4;forward
diff --git a/recipes/sppc/load_balancer.config b/recipes/sppc/load_balancer.config
new file mode 100644
index 0000000..3e4b24f
--- /dev/null
+++ b/recipes/sppc/load_balancer.config
@@ -0,0 +1,30 @@
+sec 1;add vhost 1
+sec 2;add vhost 2
+sec 3;add vhost 3
+sec 4;add vhost 4
+sec 5;add vhost 5
+sec 6;add vhost 6
+
+sec 1;add ring 0
+sec 2;add ring 1
+sec 3;add ring 2
+sec 4;add ring 0
+sec 5;add ring 1
+sec 6;add ring 2
+
+topo_subgraph add c1 vhost:1,vhost:2,vhost:3
+topo_subgraph add c2 vhost:4,vhost:5,vhost:6
+
+sec 1;patch vhost:1 ring:0
+sec 2;patch ring:1 vhost:2
+sec 3;patch ring:2 vhost:3
+sec 4;patch ring:0 vhost:4
+sec 5;patch vhost:5 ring:1
+sec 6;patch vhost:6 ring:2
+
+sec 1;forward
+sec 2;forward
+sec 3;forward
+sec 4;forward
+sec 5;forward
+sec 6;forward
-- 
2.17.1

  reply	other threads:[~2018-06-13  2:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-13  2:44 [spp] [PATCH 0/3] Introduce recipes as config ogawa.yasufumi
2018-06-13  2:44 ` ogawa.yasufumi [this message]
2018-06-13  2:44 ` [spp] [PATCH 2/3] recipes: update SPP usecases ogawa.yasufumi
2018-06-13  2:44 ` [spp] [PATCH 3/3] recipes: update SPP_VF usecases ogawa.yasufumi
2018-08-15 15:19 ` [spp] [PATCH 0/3] Introduce recipes as config Ferruh Yigit

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=20180613024459.31031-2-ogawa.yasufumi@lab.ntt.co.jp \
    --to=ogawa.yasufumi@lab.ntt.co.jp \
    --cc=ferruh.yigit@intel.com \
    --cc=spp@dpdk.org \
    /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).