As per documentation, for cluster scoped IP interfaces, vserver parameter is invalid and ipspace parameter should be listed and for SVM-scoped IP interfaces, we should list vserver paramter and ipspace is optional so the only way we can do is to have separate modules for cluster scoped IP interfaces and SVM-scoped IP interfaces right?
In our current playbooks, we use only one module (create lifs task) to create both intercluster (cluter scoped lifs) and data LIFs (svm scoped lifs) and would be good if can do the same in REST as well.
- name: Create data interface - REST - NAS
netapp.ontap.na_ontap_interface:
state: present
interface_name: data2
home_port: e0d
home_node: laurentn-vsim1
admin_status: up
failover_scope: home_node_only
service_policy: default-data-files
is_auto_revert: true
interface_type: ip
address: 10.10.10.10
netmask: 255.255.255.0
vserver: svm1
hostname: "{{ netapp_hostname }}"
username: "{{ netapp_username }}"
password: "{{ netapp_password }}"