<?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: Yang Model/RPC call for &amp;quot;Request Platform Software Package Cl in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/yang-model-rpc-call-for-quot-request-platform-software-package/m-p/4798864#M977</link>
    <description>&lt;P&gt;Marcel, again thank you for pointing me in the correct direction! Using &lt;STRONG&gt;CISCO-IOS-XE-install-rpc:remove&lt;/STRONG&gt; was the yang model we needed. To correctly construct the body of that POST request took some trial and error, but we have a working RESTCONF API call that will now delete (remove) all inactive software images on an IOS XE device &lt;U&gt;running 17.2.x and later&lt;/U&gt; (the&amp;nbsp;CISCO-IOS-XE-install-rpc model was introduced in 17.2.x I believe. Later 17.2+ version of IOS XE code works with that model, but any 16.x or 17.1.x version of IOS XE code do not have this Yang model available for use).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone else stumbles across this and wonders how to construct the body of this&amp;nbsp;&lt;STRONG&gt;CISCO-IOS-XE-install-rpc:remove&lt;/STRONG&gt; POST call, here is what we used for our use case (note we have no UUID to reference here so we just left it blank, but it seems that value is required). This will remove only the "inactive" software files as we marked "inactive: true":&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"Cisco-IOS-XE-install-rpc:input"&amp;nbsp;:&amp;nbsp;{&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"uuid"&amp;nbsp;:&amp;nbsp;"",&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"inactive":&amp;nbsp;"true"&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Mar 2023 21:37:52 GMT</pubDate>
    <dc:creator>BradRenner</dc:creator>
    <dc:date>2023-03-21T21:37:52Z</dc:date>
    <item>
      <title>Yang Model/RPC call for "Request Platform Software Package Clean"</title>
      <link>https://community.cisco.com/t5/controllers/yang-model-rpc-call-for-quot-request-platform-software-package/m-p/4796756#M975</link>
      <description>&lt;P&gt;I am trying to automate the upgrading of an IOS XE device using REST/RESTCONF and the accompanying YANG data models. I am trying to find the yang model or RPC call that would accomplish the cleaning (deleting) of unused image files on a device's (9200 switch) flash. Similar to&amp;nbsp;&lt;SPAN&gt;"&lt;STRONG&gt;request platform software package clean switch all&lt;/STRONG&gt;" or the older syntax "&lt;STRONG&gt;software clean&lt;/STRONG&gt;" Cisco IOS commands. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would like to accomplish something&amp;nbsp;similar, but via the correct Yang model/RPC call with RESTCONF/NETCONF. I can copy a file to the device with this yang model/RPC call "&lt;STRONG&gt;&lt;EM&gt;Cisco-IOS-XE-rpc:copy&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;" &amp;amp; then install/upgrade all in one shot with, "&lt;STRONG&gt;&lt;EM&gt;Cisco-IOS-XE-install-rpc:install&lt;/EM&gt;&lt;/STRONG&gt;".&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I have been using Cisco's YangSuite to parse the many Yang modules available for my IOS XE device, but I am still having trouble&amp;nbsp;finding any that will clean the device's flash similar to "&lt;STRONG&gt;request platform software package clean switch all&lt;/STRONG&gt;" after we have upgraded the device.&amp;nbsp; I am finding very little (to no) documentation or examples&amp;nbsp;for a lot of the Yang modules to use with RESTCONF and was hoping someone smarter than me has already made this discovery. Thanks!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 17 Mar 2023 18:24:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/yang-model-rpc-call-for-quot-request-platform-software-package/m-p/4796756#M975</guid>
      <dc:creator>BradRenner</dc:creator>
      <dc:date>2023-03-17T18:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Yang Model/RPC call for "Request Platform Software Package Cl</title>
      <link>https://community.cisco.com/t5/controllers/yang-model-rpc-call-for-quot-request-platform-software-package/m-p/4796912#M976</link>
      <description>&lt;P&gt;Does the remove RPC from&amp;nbsp;&lt;SPAN&gt;Cisco-IOS-XE-install-rpc (&lt;/SPAN&gt;&lt;SPAN&gt;/install-ios-xe-rpc:remove/install-ios-xe-rpc:input/install-ios-xe-rpc:inactive&lt;/SPAN&gt;&lt;SPAN&gt;) work? Or maybe falling back to&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Cisco-IOS-XE-cli-rpc may work?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Mar 2023 07:01:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/yang-model-rpc-call-for-quot-request-platform-software-package/m-p/4796912#M976</guid>
      <dc:creator>Marcel Zehnder</dc:creator>
      <dc:date>2023-03-18T07:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Yang Model/RPC call for "Request Platform Software Package Cl</title>
      <link>https://community.cisco.com/t5/controllers/yang-model-rpc-call-for-quot-request-platform-software-package/m-p/4798864#M977</link>
      <description>&lt;P&gt;Marcel, again thank you for pointing me in the correct direction! Using &lt;STRONG&gt;CISCO-IOS-XE-install-rpc:remove&lt;/STRONG&gt; was the yang model we needed. To correctly construct the body of that POST request took some trial and error, but we have a working RESTCONF API call that will now delete (remove) all inactive software images on an IOS XE device &lt;U&gt;running 17.2.x and later&lt;/U&gt; (the&amp;nbsp;CISCO-IOS-XE-install-rpc model was introduced in 17.2.x I believe. Later 17.2+ version of IOS XE code works with that model, but any 16.x or 17.1.x version of IOS XE code do not have this Yang model available for use).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone else stumbles across this and wonders how to construct the body of this&amp;nbsp;&lt;STRONG&gt;CISCO-IOS-XE-install-rpc:remove&lt;/STRONG&gt; POST call, here is what we used for our use case (note we have no UUID to reference here so we just left it blank, but it seems that value is required). This will remove only the "inactive" software files as we marked "inactive: true":&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"Cisco-IOS-XE-install-rpc:input"&amp;nbsp;:&amp;nbsp;{&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"uuid"&amp;nbsp;:&amp;nbsp;"",&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"inactive":&amp;nbsp;"true"&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 21:37:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/yang-model-rpc-call-for-quot-request-platform-software-package/m-p/4798864#M977</guid>
      <dc:creator>BradRenner</dc:creator>
      <dc:date>2023-03-21T21:37:52Z</dc:date>
    </item>
  </channel>
</rss>

