Merge "Interface xpath attribute read issue"
This commit is contained in:
commit
e436883c1b
|
@ -15,8 +15,8 @@
|
|||
xmlstring: "{{ instance_xml_data }}"
|
||||
xpath: /domain/devices/interface
|
||||
content: attribute
|
||||
attribute: type
|
||||
register: xmlinterfacetype
|
||||
ignore_errors: true
|
||||
|
||||
- name: Set default no valid nfv instance {{ vm_id }}
|
||||
set_fact:
|
||||
|
@ -26,9 +26,10 @@
|
|||
set_fact:
|
||||
valid_nfv_instance: true
|
||||
when: "{{ interface_type.interface.type == 'vhostuser' }}"
|
||||
loop: "{{ xmlinterfacetype.matches}}"
|
||||
loop: "{{ xmlinterfacetype.matches }}"
|
||||
loop_control:
|
||||
loop_var: interface_type
|
||||
ignore_errors: true
|
||||
|
||||
- name: Validate NFV instance
|
||||
vars:
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
xmlstring: "{{ instance_xml_data }}"
|
||||
xpath: /domain/numatune/memory
|
||||
content: attribute
|
||||
attribute: nodeset
|
||||
register: xml_instance_node
|
||||
|
||||
- name: Get instance associated numa nodes
|
||||
|
@ -17,7 +16,6 @@
|
|||
xmlstring: "{{ instance_xml_data }}"
|
||||
xpath: /domain/cputune/vcpupin
|
||||
content: attribute
|
||||
attribute: cpuset
|
||||
register: xml_vcpus
|
||||
|
||||
- name: Get instance vcpus list
|
||||
|
@ -48,7 +46,6 @@
|
|||
xmlstring: "{{ instance_xml_data }}"
|
||||
xpath: /domain/cputune/emulatorpin
|
||||
content: attribute
|
||||
attribute: cpuset
|
||||
register: xml_emulatorpin
|
||||
|
||||
- name: Check emulatorpin valid or not
|
||||
|
@ -66,7 +63,6 @@
|
|||
xmlstring: "{{ instance_xml_data }}"
|
||||
xpath: /domain/memoryBacking/hugepages/page
|
||||
content: attribute
|
||||
attribute: size
|
||||
register: xmlhugepages
|
||||
|
||||
- name: Set instance {{ vm_id }} hugepages details
|
||||
|
|
Loading…
Reference in New Issue