aboutsummaryrefslogtreecommitdiffstats
path: root/resources/templates/vat/memif_create_chain.vat
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2018-05-14 13:22:42 +0200
committerPeter Mikus <pmikus@cisco.com>2018-06-08 07:44:26 +0000
commit28b344a6ade7624278835cff242b3e0c9d891346 (patch)
treec191837a72b62ea1a70b5b007890530c32b6f3b0 /resources/templates/vat/memif_create_chain.vat
parent5b9b416f2f073a4102f3dc5ba219c81505e092ed (diff)
CSIT-1081 Container VPP configuration refactor
Adopt code for various topology configurations. Change-Id: Iaf9d7995ab8cd06da0c56c5e5664d57d19e74d7c Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/templates/vat/memif_create_chain.vat')
-rw-r--r--resources/templates/vat/memif_create_chain.vat10
1 files changed, 10 insertions, 0 deletions
diff --git a/resources/templates/vat/memif_create_chain.vat b/resources/templates/vat/memif_create_chain.vat
new file mode 100644
index 0000000000..306df83c57
--- /dev/null
+++ b/resources/templates/vat/memif_create_chain.vat
@@ -0,0 +1,10 @@
+create memif socket id {sid1} filename /mnt/host/{socket1}
+create interface memif id {mid1} socket-id {sid1} master
+set int state memif{sid1}/{mid1} up
+
+create memif socket id {sid2} filename /mnt/host/{socket2}
+create interface memif id {mid2} socket-id {sid2} master
+set int state memif{sid2}/{mid2} up
+
+set interface l2 xconnect memif{sid2}/{mid2} memif{sid1}/{mid1}
+set interface l2 xconnect memif{sid1}/{mid1} memif{sid2}/{mid2}