aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/install_samplevnf/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/install_samplevnf/tasks/main.yml')
-rw-r--r--ansible/roles/install_samplevnf/tasks/main.yml13
1 files changed, 8 insertions, 5 deletions
diff --git a/ansible/roles/install_samplevnf/tasks/main.yml b/ansible/roles/install_samplevnf/tasks/main.yml
index d332c88bc..b5d33f668 100644
--- a/ansible/roles/install_samplevnf/tasks/main.yml
+++ b/ansible/roles/install_samplevnf/tasks/main.yml
@@ -22,7 +22,6 @@
action: "{{ ansible_pkg_mgr }} name={{ item }} state=present"
with_items: "{{ vnf_build_dependencies.get(vnf_name, {}).get(ansible_os_family, []) }}"
-
- name: set build env vars
set_fact:
build_env_vars:
@@ -30,17 +29,21 @@
RTE_TARGET: "{{ RTE_TARGET }}"
VNF_CORE: "{{ samplevnf_path }}"
-- name: set soft CRC for PROX when building in VM
+- name: set soft CRC and GEN_DECAP_IPV6_TO_IPV4_CKSUM for PROX when building in VM
set_fact:
- build_env_vars: "{{ build_env_vars|combine({'crc': 'soft'}) }}"
+ build_env_vars: "{{ build_env_vars|combine({'crc': 'soft'})|combine({'GEN_DECAP_IPV6_TO_IPV4_CKSUM':'y'}) }}"
when: vnf_name == "PROX" and image_type is defined and image_type == "vm"
- name: "make {{ vnf_name }} clean"
- my_make: chdir="{{ vnf_build_dir }}" target=clean extra_args="-j {{ ansible_processor_vcpus }}"
+ command: make -j {{ ansible_processor_vcpus }} clean
+ args:
+ chdir: "{{ vnf_build_dir }}"
environment: "{{ build_env_vars }}"
- name: "make {{ vnf_name }}"
- my_make: chdir="{{ vnf_build_dir }}" extra_args="-j {{ ansible_processor_vcpus }}"
+ command: make -j {{ ansible_processor_vcpus }}
+ args:
+ chdir: "{{ vnf_build_dir }}"
environment: "{{ build_env_vars }}"
#- command: cp "{{ vnf_build_dir }}/{{ vnf_name }}/build/ip_pipeline" "{{ INSTALL_BIN_PATH }}/vACL_vnf"