From 11ceb306db89028f8609b92899aa0cc0344b26e8 Mon Sep 17 00:00:00 2001 From: vcandapp Date: Fri, 3 Jan 2025 18:30:23 +0530 Subject: [PATCH] Making check for mandatory parms --- roles/edpm_ovs_dpdk/meta/argument_specs.yml | 2 -- roles/edpm_ovs_dpdk/tasks/configure.yml | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/roles/edpm_ovs_dpdk/meta/argument_specs.yml b/roles/edpm_ovs_dpdk/meta/argument_specs.yml index eb8f3153d..70115c83d 100644 --- a/roles/edpm_ovs_dpdk/meta/argument_specs.yml +++ b/roles/edpm_ovs_dpdk/meta/argument_specs.yml @@ -6,7 +6,6 @@ argument_specs: options: edpm_ovs_dpdk_pmd_core_list: type: str - default: "" description: OvS DPDK PMD Core list edpm_ovs_dpdk_lcore_list: type: str @@ -22,7 +21,6 @@ argument_specs: description: OvS DPDK extra configs edpm_ovs_dpdk_socket_memory: type: str - default: "" description: OvS DPDK Socket Memory edpm_ovs_dpdk_revalidator_cores: type: str diff --git a/roles/edpm_ovs_dpdk/tasks/configure.yml b/roles/edpm_ovs_dpdk/tasks/configure.yml index 675c00686..1e40e7ef3 100644 --- a/roles/edpm_ovs_dpdk/tasks/configure.yml +++ b/roles/edpm_ovs_dpdk/tasks/configure.yml @@ -19,6 +19,11 @@ msg: "List of PMD cores cannot be empty - edpm_ovs_dpdk_pmd_core_list" when: not edpm_ovs_dpdk_pmd_core_list|string or edpm_ovs_dpdk_pmd_core_list == 'null' +- name: Check valid input for edpm_ovs_dpdk_socket_memory + ansible.builtin.fail: + msg: "Socket Memory cannot be empty - edpm_ovs_dpdk_socket_memory" + when: not edpm_ovs_dpdk_socket_memory|string or edpm_ovs_dpdk_socket_memory == 'null' + - name: PMD cores config when: edpm_ovs_dpdk_pmd_core_list|string block: