aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/ansible/roles/vpp_device/tasks
diff options
context:
space:
mode:
authorjuraj.linkes <juraj.linkes@pantheon.tech>2019-01-31 15:32:24 +0100
committerPeter Mikus <pmikus@cisco.com>2019-07-11 19:16:47 +0000
commit46efda9bd3a32cfe9944cb421ae3e2a3978bf9fc (patch)
treeb26ab38c18a0eb3105dbd3687331a5120a4fcb3a /resources/tools/testbed-setup/ansible/roles/vpp_device/tasks
parentf8452762b3dd6370792a5891b1010c263140bae6 (diff)
CSIT-1477: add 1n_tx2 VPP Device
- add 1n_tx2 testbed - update VF reservation to meet 1n_tx2 testbed needs - update ansible with 1n_tx2 Change-Id: Ia075a913d4859f537fd0e6bff731ea88aff01dd9 Signed-off-by: juraj.linkes <juraj.linkes@pantheon.tech>
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles/vpp_device/tasks')
-rw-r--r--resources/tools/testbed-setup/ansible/roles/vpp_device/tasks/main.yaml27
1 files changed, 27 insertions, 0 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/vpp_device/tasks/main.yaml b/resources/tools/testbed-setup/ansible/roles/vpp_device/tasks/main.yaml
index 93c5d36bc2..46ca1d746b 100644
--- a/resources/tools/testbed-setup/ansible/roles/vpp_device/tasks/main.yaml
+++ b/resources/tools/testbed-setup/ansible/roles/vpp_device/tasks/main.yaml
@@ -1,6 +1,13 @@
---
# file: roles/vpp_device/tasks/main.yaml
+- name: Load vfio-pci by default
+ lineinfile:
+ path: '/etc/modules'
+ state: 'present'
+ line: 'vfio-pci'
+ tags: load-vfio-pci
+
- name: Copy csit-initialize-vfs.sh
copy:
src: 'files/csit-initialize-vfs.sh'
@@ -10,6 +17,26 @@
mode: '744'
tags: copy-vf-script
+- name: Copy csit-initialize-vfs-data.sh
+ copy:
+ src: 'files/{{ vfs_data_file }}'
+ dest: '/usr/local/bin/csit-initialize-vfs-data.sh'
+ owner: 'root'
+ group: 'root'
+ mode: '744'
+ tags: copy-vf-data-script
+ when: vfs_data_file is defined
+
+- name: Copy default csit-initialize-vfs-data.sh
+ copy:
+ src: 'files/csit-initialize-vfs-default.sh'
+ dest: '/usr/local/bin/csit-initialize-vfs-data.sh'
+ owner: 'root'
+ group: 'root'
+ mode: '744'
+ tags: copy-vf-data-script
+ when: vfs_data_file is not defined
+
- name: Start csit-initialize-vfs.service
copy:
src: 'files/csit-initialize-vfs.service'