Skip to content

Commit 22c8365

Browse files
committed
Enable DHCP agent in networker edpm
For enabling dhcp neutron agent on edpm networker: edpm_networker_neutron_dhcp_agent_enabled set as true (by default is false) Related: OSPRH-22963 Assisted-By: Claude (claude-4.5-sonnet) Signed-off-by: Fiorella Yanac <fyanac@redhat.com>
1 parent 54f161b commit 22c8365

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)