<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Rest API - Rename Cluster Management Lif failed over na_ontap_rest_cli in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/Rest-API-Rename-Cluster-Management-Lif-failed-over-na-ontap-rest-cli/m-p/452064#M43529</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to rename the cluster management with Ansible via na_ontap_rest_cli and get an error message back.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FAILED! =&amp;gt; {"changed": false, "msg": "Error: {'message': 'Field \"lif\" is not supported in the body of a PATCH.', 'code': '262203', 'target': 'lif'}"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know the solution to this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- name: run ontap rest cli command&lt;BR /&gt;&amp;nbsp; netapp.ontap.na_ontap_rest_cli:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; hostname: "{{ dhcp_node_a }}"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; command: 'network/interface/rename'&lt;BR /&gt;&amp;nbsp; &amp;nbsp; verb: 'PATCH'&lt;BR /&gt;&amp;nbsp; &amp;nbsp; params: { 'vserver': 'nas-p01' }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; body: { 'lif': 'cluster_mgmt', 'newname': 'nas-p01_mgmt' }&lt;BR /&gt;FAILED! =&amp;gt; {"changed": false, "msg": "Error: {'message': 'Field \"lif\" is not supported in the body of a PATCH.', 'code': '262203', 'target': 'lif'}"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried the na_ontap_interface module, but it also returned an error message that the cluster_mgnt interface could not be found.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- name: rename der Management-LIF&lt;BR /&gt;netapp.ontap.na_ontap_interface:&lt;BR /&gt;hostname: "{{ dhcp_node_a }}"&lt;BR /&gt;vserver: nas-p01&lt;BR /&gt;state: present&lt;BR /&gt;from_name: cluster_mgmt&lt;BR /&gt;interface_name: nas-p01_mgmt&lt;BR /&gt;use_rest: always&lt;BR /&gt;FAILED! =&amp;gt; {"changed": false, "msg": "Error renaming interface nas-p01_mgmt: no interface with from_name cluster_mgmt."}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This interface is displayed on the console. This is a newly set up cluster, where access is via the previously assigned DHCP IP address.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;nas-p01::&amp;gt; net int show&lt;BR /&gt;(network interface show)&lt;BR /&gt;Logical Status Network Current Current Is&lt;BR /&gt;Vserver Interface Admin/Oper Address/Mask Node Port Home&lt;BR /&gt;----------- ---------- ---------- ------------------ ------------- ------- ----&lt;BR /&gt;nas-p01&lt;BR /&gt;cluster_mgmt up/up x.x.x.x/27 nas-p01b e0M true&lt;BR /&gt;nas-p01a_mgmt up/up x.x.x.x/27 nas-p01a e0M true&lt;BR /&gt;nas-p01b_mgmt up/up x.x.x.x/27 nas-p01b e0M true&lt;BR /&gt;nas-p01b_mgmt_auto up/up x.x.x.x/24 nas-p01b e0M true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Apr 2024 13:41:41 GMT</pubDate>
    <dc:creator>M_Herrmanny</dc:creator>
    <dc:date>2024-04-16T13:41:41Z</dc:date>
    <item>
      <title>Rest API - Rename Cluster Management Lif failed over na_ontap_rest_cli</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Rest-API-Rename-Cluster-Management-Lif-failed-over-na-ontap-rest-cli/m-p/452064#M43529</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to rename the cluster management with Ansible via na_ontap_rest_cli and get an error message back.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FAILED! =&amp;gt; {"changed": false, "msg": "Error: {'message': 'Field \"lif\" is not supported in the body of a PATCH.', 'code': '262203', 'target': 'lif'}"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know the solution to this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- name: run ontap rest cli command&lt;BR /&gt;&amp;nbsp; netapp.ontap.na_ontap_rest_cli:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; hostname: "{{ dhcp_node_a }}"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; command: 'network/interface/rename'&lt;BR /&gt;&amp;nbsp; &amp;nbsp; verb: 'PATCH'&lt;BR /&gt;&amp;nbsp; &amp;nbsp; params: { 'vserver': 'nas-p01' }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; body: { 'lif': 'cluster_mgmt', 'newname': 'nas-p01_mgmt' }&lt;BR /&gt;FAILED! =&amp;gt; {"changed": false, "msg": "Error: {'message': 'Field \"lif\" is not supported in the body of a PATCH.', 'code': '262203', 'target': 'lif'}"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried the na_ontap_interface module, but it also returned an error message that the cluster_mgnt interface could not be found.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- name: rename der Management-LIF&lt;BR /&gt;netapp.ontap.na_ontap_interface:&lt;BR /&gt;hostname: "{{ dhcp_node_a }}"&lt;BR /&gt;vserver: nas-p01&lt;BR /&gt;state: present&lt;BR /&gt;from_name: cluster_mgmt&lt;BR /&gt;interface_name: nas-p01_mgmt&lt;BR /&gt;use_rest: always&lt;BR /&gt;FAILED! =&amp;gt; {"changed": false, "msg": "Error renaming interface nas-p01_mgmt: no interface with from_name cluster_mgmt."}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This interface is displayed on the console. This is a newly set up cluster, where access is via the previously assigned DHCP IP address.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;nas-p01::&amp;gt; net int show&lt;BR /&gt;(network interface show)&lt;BR /&gt;Logical Status Network Current Current Is&lt;BR /&gt;Vserver Interface Admin/Oper Address/Mask Node Port Home&lt;BR /&gt;----------- ---------- ---------- ------------------ ------------- ------- ----&lt;BR /&gt;nas-p01&lt;BR /&gt;cluster_mgmt up/up x.x.x.x/27 nas-p01b e0M true&lt;BR /&gt;nas-p01a_mgmt up/up x.x.x.x/27 nas-p01a e0M true&lt;BR /&gt;nas-p01b_mgmt up/up x.x.x.x/27 nas-p01b e0M true&lt;BR /&gt;nas-p01b_mgmt_auto up/up x.x.x.x/24 nas-p01b e0M true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 13:41:41 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Rest-API-Rename-Cluster-Management-Lif-failed-over-na-ontap-rest-cli/m-p/452064#M43529</guid>
      <dc:creator>M_Herrmanny</dc:creator>
      <dc:date>2024-04-16T13:41:41Z</dc:date>
    </item>
  </channel>
</rss>

