ONTAP Discussions

Rest API - Rename Cluster Management Lif failed over na_ontap_rest_cli

M_Herrmanny
579 Views

Hello everyone,

 

I am trying to rename the cluster management with Ansible via na_ontap_rest_cli and get an error message back.

 

FAILED! => {"changed": false, "msg": "Error: {'message': 'Field \"lif\" is not supported in the body of a PATCH.', 'code': '262203', 'target': 'lif'}"}

 

Does anyone know the solution to this problem?

 

- name: run ontap rest cli command
  netapp.ontap.na_ontap_rest_cli:
    hostname: "{{ dhcp_node_a }}"
    command: 'network/interface/rename'
    verb: 'PATCH'
    params: { 'vserver': 'nas-p01' }
    body: { 'lif': 'cluster_mgmt', 'newname': 'nas-p01_mgmt' }
FAILED! => {"changed": false, "msg": "Error: {'message': 'Field \"lif\" is not supported in the body of a PATCH.', 'code': '262203', 'target': 'lif'}"}

 

I also tried the na_ontap_interface module, but it also returned an error message that the cluster_mgnt interface could not be found.

 

- name: rename der Management-LIF
netapp.ontap.na_ontap_interface:
hostname: "{{ dhcp_node_a }}"
vserver: nas-p01
state: present
from_name: cluster_mgmt
interface_name: nas-p01_mgmt
use_rest: always
FAILED! => {"changed": false, "msg": "Error renaming interface nas-p01_mgmt: no interface with from_name cluster_mgmt."}

 

This interface is displayed on the console. This is a newly set up cluster, where access is via the previously assigned DHCP IP address.

 

nas-p01::> net int show
(network interface show)
Logical Status Network Current Current Is
Vserver Interface Admin/Oper Address/Mask Node Port Home
----------- ---------- ---------- ------------------ ------------- ------- ----
nas-p01
cluster_mgmt up/up x.x.x.x/27 nas-p01b e0M true
nas-p01a_mgmt up/up x.x.x.x/27 nas-p01a e0M true
nas-p01b_mgmt up/up x.x.x.x/27 nas-p01b e0M true
nas-p01b_mgmt_auto up/up x.x.x.x/24 nas-p01b e0M true

 

0 REPLIES 0
Public