#Migrate an interface without altering home node for the interface

1 messages · Page 1 of 1 (latest)

oak tundra
#

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

oak tundra
#

@shrewd slate for my use case, I’ll have to use workaround if I just want to migrate the lif without modifying its home node as the module does modify the home node post migrating the lif?

shrewd slate
#

I'm not sure. Do you know i this is possible with the REST API, or what the CLI command for this is?