#cant create cluster mgmt lif when "-" in cluster name

1 messages · Page 1 of 1 (latest)

signal shoal
#
      - name: Create cluster mgmt lif using na_ontap_interface
        netapp.ontap.na_ontap_interface:
            state: present
            interface_name: "cluster_mgmt"
            vserver: 'asa20-2n-rtp-1'
            address: "{{ cluster.cluster_mgmt }}"
            netmask: "{{ cluster.subnet }}"
            service_policy: "default-management"
            home_node: "{{ nodes[0].name }}"
            home_port: "{{ cluster.cluster_mgmt_port }}"
            is_auto_revert: true
            admin_status: up
            hostname: "{{ nodes[0].mgmt_ip }}"
            <<: *login
        tags: ["always", "cluster_mgmt_lif"]
"msg": "Error creating interface cluster_mgmt: calling: network/ip/interfaces: got {'message': 'The specified svm.name \"asa20-2n-rtp-1\", is invalid.', 'code': '1967146', 'target': 'svm.name'}."

}

#

This is ontap 9.16.1

signal shoal
#

this works but i'd rather not do this

      - name: Cluster lif create using REST API
        netapp.ontap.na_ontap_rest_cli:
          command: network/interface
          body: 
            vserver: "{{ cluster.name }}"
            lif: cluster_mgmt 
            address: "{{ cluster.cluster_mgmt }}" 
            netmask: "{{ cluster.subnet }}" 
            service-policy: default-management
            status-admin: up 
            home-node: "{{ nodes[0].name }}" 
            home-port: "{{ cluster.cluster_mgmt_port }}"
          hostname: "{{ nodes[0].mgmt_ip }}"
          <<: *login
          verb: POST
#

theres no idempotency this way

proven ocean
#

For cluster-scoped IP interfaces you have to remove the vserver: option when using REST.