<?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: DNAC 1.1 - Set Interface VN, pool, authentication via API? in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/dnac-1-1-set-interface-vn-pool-authentication-via-api/m-p/3498418#M9325</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To update my opening thread, I got this working, and it's now on Github. &lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/jasonbarbee/dnac-bulk" title="https://github.com/jasonbarbee/dnac-bulk"&gt;https://github.com/jasonbarbee/dnac-bulk&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Public APIs on 1.1 seem limited right now. I couldn't find what I wanted to do in the public APIs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to use Inspector on Firefox and inspect the actual calls that the DNA web interface used to reverse engineer the requests from the Javascript front end side, then replicate and rebuild API calls by hand in python...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So after I inspected the Host On Boarding page API calls, I built a python script to handle these calls and we've cutover many DNA Fabric switches using the script, and gradually improved it over the past couple months. We have many more to go over the next few months, and the tool works great, and has some common error handling, and it's actively being improved to make our cutover process smooth. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your Assurance question, you will just have to do what I did and reverse engineer the APIs from the web page - until Cisco releases Assurance API interfaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your API / Swagger question - they moved it -&amp;nbsp; used to be /swagger in DNA 1.0, but 1.1 it was changed to /dna/apitester&lt;/P&gt;&lt;P&gt;There are some other API guides on DevNet, but again, they just didn't give me the answers I needed.&lt;/P&gt;&lt;P&gt;Most of the APIs I wanted to use were not documented. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I have a process worked out to convert an IOS config file to a YAML structure, then convert that into a simple CSV for my importing script, and then my script posts the configurations to DNA API for the fabric switch ports.&lt;/P&gt;&lt;P&gt;The script can convert, import, export, wipe switch port configs, and find mac addresses on the Fabric. We are on DNA 1.1.2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully that answers most of your questions and gives you some direction,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Mar 2018 18:38:58 GMT</pubDate>
    <dc:creator>jbarbee</dc:creator>
    <dc:date>2018-03-05T18:38:58Z</dc:date>
    <item>
      <title>DNAC 1.1 - Set Interface VN, pool, authentication via API?</title>
      <link>https://community.cisco.com/t5/network-platform-api/dnac-1-1-set-interface-vn-pool-authentication-via-api/m-p/3498416#M9323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there an API call to push changes to interfaces to assign Pool,VN and authentication parameters to ports in the switches in fabric inventory? I have been through the DNA Swagger URL on DNAC 1.1 and do not see a POST interface for this.&lt;/P&gt;&lt;P&gt;Our use case is for a migration process to help restore older vlan mappings to new DNAC fabric switches.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 16:52:25 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dnac-1-1-set-interface-vn-pool-authentication-via-api/m-p/3498416#M9323</guid>
      <dc:creator>jbarbee</dc:creator>
      <dc:date>2017-12-29T16:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: DNAC 1.1 - Set Interface VN, pool, authentication via API?</title>
      <link>https://community.cisco.com/t5/network-platform-api/dnac-1-1-set-interface-vn-pool-authentication-via-api/m-p/3498417#M9324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I'm also struggling with the current API. there are not much available as i see. we would like to get our the assurance information as our helpdesk don't want to have dna center open the whole day. &lt;/P&gt;&lt;P&gt;Are there any hidden API's which are not documented?&lt;/P&gt;&lt;P&gt;Where can you access the Swagger? - Is there any Swagger as it was in the APIC-EM? i only find the official documentation which is still only available in version 1.1...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any information about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 14:17:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dnac-1-1-set-interface-vn-pool-authentication-via-api/m-p/3498417#M9324</guid>
      <dc:creator>Pascal Weber</dc:creator>
      <dc:date>2018-02-27T14:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: DNAC 1.1 - Set Interface VN, pool, authentication via API?</title>
      <link>https://community.cisco.com/t5/network-platform-api/dnac-1-1-set-interface-vn-pool-authentication-via-api/m-p/3498418#M9325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To update my opening thread, I got this working, and it's now on Github. &lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/jasonbarbee/dnac-bulk" title="https://github.com/jasonbarbee/dnac-bulk"&gt;https://github.com/jasonbarbee/dnac-bulk&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Public APIs on 1.1 seem limited right now. I couldn't find what I wanted to do in the public APIs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to use Inspector on Firefox and inspect the actual calls that the DNA web interface used to reverse engineer the requests from the Javascript front end side, then replicate and rebuild API calls by hand in python...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So after I inspected the Host On Boarding page API calls, I built a python script to handle these calls and we've cutover many DNA Fabric switches using the script, and gradually improved it over the past couple months. We have many more to go over the next few months, and the tool works great, and has some common error handling, and it's actively being improved to make our cutover process smooth. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your Assurance question, you will just have to do what I did and reverse engineer the APIs from the web page - until Cisco releases Assurance API interfaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your API / Swagger question - they moved it -&amp;nbsp; used to be /swagger in DNA 1.0, but 1.1 it was changed to /dna/apitester&lt;/P&gt;&lt;P&gt;There are some other API guides on DevNet, but again, they just didn't give me the answers I needed.&lt;/P&gt;&lt;P&gt;Most of the APIs I wanted to use were not documented. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I have a process worked out to convert an IOS config file to a YAML structure, then convert that into a simple CSV for my importing script, and then my script posts the configurations to DNA API for the fabric switch ports.&lt;/P&gt;&lt;P&gt;The script can convert, import, export, wipe switch port configs, and find mac addresses on the Fabric. We are on DNA 1.1.2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully that answers most of your questions and gives you some direction,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2018 18:38:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dnac-1-1-set-interface-vn-pool-authentication-via-api/m-p/3498418#M9325</guid>
      <dc:creator>jbarbee</dc:creator>
      <dc:date>2018-03-05T18:38:58Z</dc:date>
    </item>
  </channel>
</rss>

