aboutsummaryrefslogtreecommitdiffstats
path: root/resources/templates/vat
diff options
context:
space:
mode:
Diffstat (limited to 'resources/templates/vat')
-rw-r--r--resources/templates/vat/memif_create_chain.vat (renamed from resources/templates/vat/memif_create_cnt.vat)0
-rw-r--r--resources/templates/vat/memif_create_cross_horiz.vat8
2 files changed, 8 insertions, 0 deletions
diff --git a/resources/templates/vat/memif_create_cnt.vat b/resources/templates/vat/memif_create_chain.vat
index 306df83c57..306df83c57 100644
--- a/resources/templates/vat/memif_create_cnt.vat
+++ b/resources/templates/vat/memif_create_chain.vat
diff --git a/resources/templates/vat/memif_create_cross_horiz.vat b/resources/templates/vat/memif_create_cross_horiz.vat
new file mode 100644
index 0000000000..65db4e409c
--- /dev/null
+++ b/resources/templates/vat/memif_create_cross_horiz.vat
@@ -0,0 +1,8 @@
+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
+set int state {if_name} up
+
+set interface l2 xconnect {if_name} memif{sid1}/{mid1}
+set interface l2 xconnect memif{sid1}/{mid1} {if_name}