diff options
author | Peter Mikus <pmikus@cisco.com> | 2017-08-21 11:01:24 +0200 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2017-10-09 09:35:05 +0000 |
commit | df5ed0d9317e2a1d4a7248459cc6aec39f80a052 (patch) | |
tree | 7478e6273ef87b81c536c978e30e3435e4ceee2d /resources/templates/vat/memif_create_lxc.vat | |
parent | 08e35e37f7ad3394cea86c22ab7ffd990651c112 (diff) |
CSIT-768: Refactor Python container libraries
CSIT-769: Implement L2 RF keywords for container orchestration
Change-Id: I7637d1ecc3a45111522b8d6c578b3f88369aff6b
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/templates/vat/memif_create_lxc.vat')
-rw-r--r-- | resources/templates/vat/memif_create_lxc.vat | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/resources/templates/vat/memif_create_lxc.vat b/resources/templates/vat/memif_create_lxc.vat index 5bc77d8ff3..92e456c2a4 100644 --- a/resources/templates/vat/memif_create_lxc.vat +++ b/resources/templates/vat/memif_create_lxc.vat @@ -1,8 +1,8 @@ -create memif id 1 socket /mnt/host/{socket1} slave
-set int state memif0/1 up
-
-create memif id 2 socket /mnt/host/{socket2} slave
-set int state memif1/2 up
-
-set interface l2 xconnect memif1/2 memif0/1
-set interface l2 xconnect memif0/1 memif1/2
+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} |