Skip to content

Commit d1c81e0

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

File tree

1 file changed

+16
-0
lines changed
  • tests/roles/dataplane_adoption/tasks

1 file changed

+16
-0
lines changed

tests/roles/dataplane_adoption/tasks/main.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,22 @@
394394
done
395395
when: edpm_neutron_dhcp_agent_enabled|bool
396396

397+
- name: enable neutron-dhcp in the OpenStackDataPlaneNodeSet CR Networker
398+
no_log: "{{ use_no_log }}"
399+
ansible.builtin.shell: |
400+
{{ shell_header }}
401+
{{ oc_header }}
402+
403+
oc patch openstackdataplanenodeset openstack-networker --type='json' --patch='[
404+
{
405+
"op": "add",
406+
"path": "/spec/services/-",
407+
"value": "neutron-dhcp"
408+
}]'
409+
when:
410+
- edpm_networker_neutron_dhcp_agent_enabled | default(false) | bool
411+
- edpm_nodes_networker is defined
412+
397413
- name: Run the pre-adoption validation
398414
when: run_pre_adoption_validation|bool
399415
block:

0 commit comments

Comments
 (0)