From d166ae0881c29dfd05ed61b9a12156f17981bb6d Mon Sep 17 00:00:00 2001 From: Peter Mikus Date: Tue, 6 Jun 2017 07:15:29 +0200 Subject: CSIT-651 Add keywords and template for memif Add keywords and template for memif Change-Id: I8bd5cfe345260750a74930c8ef55690be5f2dd5e Signed-off-by: Peter Mikus --- resources/templates/vat/memif_create.vat | 1 + resources/templates/vat/memif_create_lxc.vat | 8 ++++++++ resources/templates/vat/memif_dump.vat | 1 + 3 files changed, 10 insertions(+) create mode 100644 resources/templates/vat/memif_create.vat create mode 100644 resources/templates/vat/memif_create_lxc.vat create mode 100644 resources/templates/vat/memif_dump.vat (limited to 'resources/templates') diff --git a/resources/templates/vat/memif_create.vat b/resources/templates/vat/memif_create.vat new file mode 100644 index 0000000000..228c824c25 --- /dev/null +++ b/resources/templates/vat/memif_create.vat @@ -0,0 +1 @@ +memif_create id {id} socket {socket} {role} diff --git a/resources/templates/vat/memif_create_lxc.vat b/resources/templates/vat/memif_create_lxc.vat new file mode 100644 index 0000000000..873cb0b68f --- /dev/null +++ b/resources/templates/vat/memif_create_lxc.vat @@ -0,0 +1,8 @@ +create memif id 1 socket /mnt/host/{socket1} slave +set int state memif0 up + +create memif id 2 socket /mnt/host/{socket2} slave +set int state memif1 up + +set interface l2 xconnect memif1 memif0 +set interface l2 xconnect memif0 memif1 diff --git a/resources/templates/vat/memif_dump.vat b/resources/templates/vat/memif_dump.vat new file mode 100644 index 0000000000..355f8f6efd --- /dev/null +++ b/resources/templates/vat/memif_dump.vat @@ -0,0 +1 @@ +memif_dump -- cgit 1.2.3-korg