<?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 Re: Ansible ONTAP LIF delete not working in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Ansible-ONTAP-LIF-delete-not-working/m-p/437029#M3211</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/89123"&gt;@LaurentN&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;These two options did the trick:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;omitting vserver:&lt;/LI&gt;&lt;LI&gt;leaving vserver: and adding&amp;nbsp;use_rest: never&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;'ansible-galaxy collection list' shows that the&amp;nbsp;netapp.ontap version is 21.19.1&lt;/P&gt;</description>
    <pubDate>Sun, 31 Jul 2022 09:01:29 GMT</pubDate>
    <dc:creator>marks</dc:creator>
    <dc:date>2022-07-31T09:01:29Z</dc:date>
    <item>
      <title>Ansible ONTAP LIF delete not working</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Ansible-ONTAP-LIF-delete-not-working/m-p/436956#M3209</link>
      <description>&lt;P&gt;Hi guys,&lt;BR /&gt;&lt;BR /&gt;I have a playbook where I'm using the na_ontap_interface module in a lab. I can create a broadcast-domain-wide or local-only LIF in the default (cluster) SVM. I can also set the LIF state up or down, but I've not been able to get the playbook to delete the LIF. Any ideas what the issue might be?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here's&amp;nbsp;the environment:&lt;/P&gt;&lt;P&gt;ansible [core 2.13.1]&lt;/P&gt;&lt;P&gt;netapp-lib 2021.6.25&lt;/P&gt;&lt;P&gt;python version = 3.9.13&lt;/P&gt;&lt;P&gt;ONTAP 9.10.1 sim&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The section of the runbook that doesn't work is as follows. No error is given, it just silently fails - as far as I can tell, even with -vvv output.&lt;BR /&gt;&lt;BR /&gt;- name: Delete LIF&lt;BR /&gt;na_ontap_interface:&lt;BR /&gt;state: absent&lt;BR /&gt;interface_name: "{{ cluster }}-01_mgmt_auto"&lt;BR /&gt;vserver: "{{ cluster }}"&lt;BR /&gt;hostname: "{{ cluster_mgmt }}"&lt;BR /&gt;&amp;lt;&amp;lt;: *login&lt;BR /&gt;&lt;BR /&gt;Runbook and input yaml files attached.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 09:58:22 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Ansible-ONTAP-LIF-delete-not-working/m-p/436956#M3209</guid>
      <dc:creator>marks</dc:creator>
      <dc:date>2025-06-04T09:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible ONTAP LIF delete not working</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Ansible-ONTAP-LIF-delete-not-working/m-p/436964#M3210</link>
      <description>&lt;P&gt;It would help to see the output from ansible-playbook, the more with -vvv to examine the input parameters.&lt;BR /&gt;I assume it just says "changed": false.&amp;nbsp;&lt;BR /&gt;It would mean the interface is not found, so it's not deleted.&amp;nbsp; &amp;nbsp;Most likely the module is using REST (this is controlled by use_rest, and defaults to auto).&amp;nbsp; REST only recognizes data vservers, so the trick for cluster scoped interfaces is to omit the vserver options, or to set it to NULL.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;This is something we changed recently, so knowing the version of the ONTAP Ansible collection would help.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 05:17:04 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Ansible-ONTAP-LIF-delete-not-working/m-p/436964#M3210</guid>
      <dc:creator>LaurentN</dc:creator>
      <dc:date>2022-07-28T05:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible ONTAP LIF delete not working</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Ansible-ONTAP-LIF-delete-not-working/m-p/437029#M3211</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/89123"&gt;@LaurentN&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;These two options did the trick:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;omitting vserver:&lt;/LI&gt;&lt;LI&gt;leaving vserver: and adding&amp;nbsp;use_rest: never&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;'ansible-galaxy collection list' shows that the&amp;nbsp;netapp.ontap version is 21.19.1&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jul 2022 09:01:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Ansible-ONTAP-LIF-delete-not-working/m-p/437029#M3211</guid>
      <dc:creator>marks</dc:creator>
      <dc:date>2022-07-31T09:01:29Z</dc:date>
    </item>
  </channel>
</rss>

