Skip to content

Commit

Permalink
Making check for mandatory parms
Browse files Browse the repository at this point in the history
  • Loading branch information
vcandapp committed Jan 3, 2025
1 parent ef3c633 commit 11ceb30
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 0 additions & 2 deletions roles/edpm_ovs_dpdk/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
5 changes: 5 additions & 0 deletions roles/edpm_ovs_dpdk/tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 11ceb30

Please sign in to comment.