[spp] [PATCH 1/3] recipes: add recipes directory
ogawa.yasufumi at lab.ntt.co.jp
ogawa.yasufumi at lab.ntt.co.jp
Wed Jun 13 04:44:57 CEST 2018
From: Yasufumi Ogawa <ogawa.yasufumi at 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 at 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
More information about the spp
mailing list