CSIT-768: Refactor Python container libraries
[csit.git] / resources / templates / vat / memif_create_lxc.vat
index 5bc77d8..92e456c 100644 (file)
@@ -1,8 +1,8 @@
-create memif id 1 socket /mnt/host/{socket1} slave\r
-set int state memif0/1 up\r
-\r
-create memif id 2 socket /mnt/host/{socket2} slave\r
-set int state memif1/2 up\r
-\r
-set interface l2 xconnect memif1/2 memif0/1\r
-set interface l2 xconnect memif0/1 memif1/2\r
+create memif id {memif_id1} socket /mnt/host/{socket1} slave
+set int state memif0/{memif_id1} up
+
+create memif id {memif_id2} socket /mnt/host/{socket2} slave
+set int state memif1/{memif_id2} up
+
+set interface l2 xconnect memif1/{memif_id2} memif0/{memif_id1}
+set interface l2 xconnect memif0/{memif_id1} memif1/{memif_id2}

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.