Skip to content

Commit fc648b9

Browse files
committed
DHCP agent in edpm networker
1 parent 12079b2 commit fc648b9

File tree

1 file changed

+19
-1
lines changed
  • tests/roles/dataplane_adoption/tasks

1 file changed

+19
-1
lines changed

tests/roles/dataplane_adoption/tasks/main.yaml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,25 @@
392392
"value": "neutron-dhcp"
393393
}]'
394394
done
395-
when: edpm_neutron_dhcp_agent_enabled|bool
395+
when:
396+
- edpm_neutron_dhcp_agent_enabled
397+
- edpm_nodes_networker is not defined
398+
399+
- name: enable neutron-dhcp in the OpenStackDataPlaneNodeSet CR Networker
400+
no_log: "{{ use_no_log }}"
401+
ansible.builtin.shell: |
402+
{{ shell_header }}
403+
{{ oc_header }}
404+
405+
oc patch openstackdataplanenodeset openstack-networker --type='json' --patch='[
406+
{
407+
"op": "add",
408+
"path": "/spec/services/-",
409+
"value": "neutron-dhcp"
410+
}]'
411+
when:
412+
- edpm_networker_neutron_dhcp_agent_enabled | default(false) | bool
413+
- edpm_nodes_networker is defined
396414

397415
- name: Run the pre-adoption validation
398416
when: run_pre_adoption_validation|bool

0 commit comments

Comments
 (0)