Skip to content

Commit 2f317a6

Browse files
Merge pull request #1178 from fyanac/modif_dhcp_neutron
Enable DHCP agent in networker edpm
2 parents 1401c14 + 22c8365 commit 2f317a6

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

  • tests/roles/dataplane_adoption/tasks

tests/roles/dataplane_adoption/tasks/main.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,22 @@
647647
done
648648
when: edpm_neutron_dhcp_agent_enabled|bool
649649

650+
- name: enable neutron-dhcp in the OpenStackDataPlaneNodeSet CR Networker
651+
no_log: "{{ use_no_log }}"
652+
ansible.builtin.shell: |
653+
{{ shell_header }}
654+
{{ oc_header }}
655+
656+
oc patch openstackdataplanenodeset openstack-networker --type='json' --patch='[
657+
{
658+
"op": "add",
659+
"path": "/spec/services/-",
660+
"value": "neutron-dhcp"
661+
}]'
662+
when:
663+
- edpm_networker_neutron_dhcp_agent_enabled | default(false) | bool
664+
- edpm_nodes_networker is defined
665+
650666
- name: Run the pre-adoption validation
651667
when: run_pre_adoption_validation|bool
652668
block:

0 commit comments

Comments
 (0)