Hi all,
Is it possible to use the current Ansible module to migrate an interface to a partner node temporarily without altering the home node for the interface? The current module seems to migrate and modify the home node, but I specifically want to migrate an interface without changing its home node. Is this supported by the current module?
- name: Migrate an interface
netapp.ontap.na_ontap_interface:
state: present
vserver: "{{ item.vserver }}"
interface_name: "{{ item.lif }}"
home_port: "{{ item.destination_port }}"
home_node: "{{ item.destination_node }}"
current_node: "{{ item.current_node }}"
admin_status: up
<<: *login
with_items: "{{ lif_migrate }}"
Playbook Output:
changed: [localhost] => (item={'vserver': 'test-nas-PROD', 'lif': 'vlan000_n09', 'destination_port': 'a9a-000', 'destination_node': 'test-nas-nas-n12', 'current_node': 'test-nas-nas-n09'}) => changed=true
ansible_loop_var: item
item:
current_node: test-nas-nas-n09
destination_node: test-nas-nas-n12
destination_port: a9a-000
lif: vlan000_n09
vserver: test-nas-PROD
modify:
home_node: test-nas-nas-n12