<?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: NSO ACI Authentication Issue in NSO Developer Hub Discussions</title>
    <link>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-aci-authentication-issue/m-p/4150733#M5652</link>
    <description>&lt;P&gt;Yeah I have the documentation bundle that I think you are referring to, this ships with NSO. I am semi-familiar with writing code for NSO and have built various services in it already, however those center around ISO and IOS-XR devices. I'm curious if there is anything specific to ACI and the APICDC NEDs, like code examples or something and how specifically to interact with those devices?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sure once I get the NED installed I can see what's available at CLI to get some clues, but I haven't been able to find any module examples specific to this platform in the searching I have done up to this point.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Sep 2020 14:10:12 GMT</pubDate>
    <dc:creator>RyanWayno20056</dc:creator>
    <dc:date>2020-09-14T14:10:12Z</dc:date>
    <item>
      <title>NSO ACI Authentication Issue</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-aci-authentication-issue/m-p/4149313#M5642</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I've installed the ACI NED for NSO and have added a test device, but I'm running into an issue with authentication. I followed the instructions in the first part of the README (I can post if needed) using an existing auth group. When I try to connect to the device I'm getting the following error back, note that I've redacted the device name here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Admin@ncs(config)# devices device XXXXXXXX connect&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;result false&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;info Failed to connect to device XXXXXXXX : connection refused: ned_external_error ACILogin :: Connect error:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Failed to acquire token:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;HTTP:400 -&amp;gt;[Bad Request]:[{"totalCount":"1","imdata":[{"error":{"attributes":{"code":"6","text":"Output format was not specified (possible options: .xml|.json)"}}}]}]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's no information in the README that speaks to this or additional required steps related to authentication. Can someone point me in the right direction here on what's wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 17:37:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-aci-authentication-issue/m-p/4149313#M5642</guid>
      <dc:creator>RyanWayno20056</dc:creator>
      <dc:date>2020-09-10T17:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: NSO ACI Authentication Issue</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-aci-authentication-issue/m-p/4149331#M5643</link>
      <description>&lt;P&gt;&lt;STRONG&gt;INSTRUCTIONS FROM README:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In the CLI configure the device. Enter configuration mode:&lt;/P&gt;&lt;P&gt;admin@ncs# configure&lt;BR /&gt;admin@ncs(config)#&lt;BR /&gt;&lt;BR /&gt;Set the required configurables,&lt;BR /&gt;############################################&lt;BR /&gt;### [ !!! ] for NSO &amp;gt;= 5.X, use major; gets autocompleted in the cli if you press &amp;lt;Tab&amp;gt; after "ned-id"&lt;BR /&gt;### [ !!! ] say if NED version 1.3.9 is loaded, set the ned id to "cisco-aci-mso-gen-1.3" as below:&lt;BR /&gt;admin@ncs(config)# devices device &amp;lt;device-name&amp;gt; device-type generic ned-id cisco-aci-mso-gen-1.3&lt;/P&gt;&lt;P&gt;### [ !!! ] for NSO &amp;lt; 5.X, no versioning of the ned-id is needed:&lt;BR /&gt;admin@ncs(config)# devices device &amp;lt;device-name&amp;gt; device-type generic ned-id cisco-aci-mso&lt;/P&gt;&lt;P&gt;admin@ncs(config)# devices device &amp;lt;device-name&amp;gt; state admin-state unlocked&lt;BR /&gt;admin@ncs(config)# devices device &amp;lt;device-name&amp;gt; address &amp;lt;ip-address&amp;gt;&lt;BR /&gt;admin@ncs(config)# devices device &amp;lt;device-name&amp;gt; port &amp;lt;port&amp;gt; &lt;STRONG&gt;(SET TO 443)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;############################################&lt;BR /&gt;Set the authentication username/password:&lt;BR /&gt;############################################&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I USED AN EXISTING AUTH GROUP WITH VALID CREDENTIALS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;admin@ncs(config)# devices authgroups group &amp;lt;group-name&amp;gt; default-map remote-name &amp;lt;remote-name&amp;gt;&lt;BR /&gt;admin@ncs(config)# devices authgroups group &amp;lt;group-name&amp;gt; default-map remote-password &amp;lt;remote-password&amp;gt;&lt;BR /&gt;admin@ncs(config)# devices device &amp;lt;device-name&amp;gt; authgroup &amp;lt;group-name&amp;gt;&lt;BR /&gt;&lt;BR /&gt;############################################&lt;BR /&gt;[IMPORTANT]: set a timeout of a minimum 120-130 seconds because of the current device behavior. 150 recommended&lt;BR /&gt;############################################&lt;BR /&gt;admin@ncs(config)# devices device &amp;lt;device-name&amp;gt; connect-timeout 150&lt;BR /&gt;admin@ncs(config)# devices device &amp;lt;device-name&amp;gt; read-timeout 150&lt;BR /&gt;admin@ncs(config)# devices device &amp;lt;device-name&amp;gt; write-timeout 150&lt;BR /&gt;&lt;BR /&gt;############################################&lt;BR /&gt;Update ned-settings[IMPORTANT] :&lt;BR /&gt;############################################&lt;BR /&gt;&lt;BR /&gt;admin@ncs(config)# devices device &amp;lt;device-name&amp;gt; ned-settings cisco-aci-mso connection api-base-url /api/v1&lt;BR /&gt;admin@ncs(config)# devices device &amp;lt;device-name&amp;gt; ned-settings cisco-aci-mso connection ssl accept-any true&lt;BR /&gt;admin@ncs(config)# devices device &amp;lt;device-name&amp;gt; ned-settings cisco-aci-mso log-verbose true&lt;BR /&gt;admin@ncs(config)# devices device &amp;lt;device-name&amp;gt; ned-settings use-transaction-id false&lt;BR /&gt;admin@ncs(config)# commit&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 18:09:19 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-aci-authentication-issue/m-p/4149331#M5643</guid>
      <dc:creator>RyanWayno20056</dc:creator>
      <dc:date>2020-09-10T18:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: NSO ACI Authentication Issue</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-aci-authentication-issue/m-p/4149424#M5644</link>
      <description>&lt;P&gt;One last note here after some additional testing for what it's worth. I confirmed that I am able to successfully connect to the ACI in question using a API post in Postman and get a valid response with a token back, so I'm guessing there's some configuration information lacking in the README file??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://apic-ip-address/api/aaaLogin.json" target="_blank"&gt;POST https://apic-ip-address/api/aaaLogin.json&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;BR /&gt;"aaaUser" : {&lt;BR /&gt;"attributes" : {&lt;BR /&gt;"name" : "xxx",&lt;BR /&gt;"pwd" : "xxxxxx"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 21:55:02 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-aci-authentication-issue/m-p/4149424#M5644</guid>
      <dc:creator>RyanWayno20056</dc:creator>
      <dc:date>2020-09-10T21:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: NSO ACI Authentication Issue</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-aci-authentication-issue/m-p/4149594#M5646</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In order to deeply investigate this issue further we would need from you to submit a new ticket and provide us with access to your device.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Andrei&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 08:35:19 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-aci-authentication-issue/m-p/4149594#M5646</guid>
      <dc:creator>aprisaca</dc:creator>
      <dc:date>2020-09-11T08:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: NSO ACI Authentication Issue</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-aci-authentication-issue/m-p/4149599#M5647</link>
      <description>&lt;P&gt;Are you trying to manage an ACI Multi Site Orchestrator (MSO) instance, or just an ACI APIC cluster? From your initial post I assume you are just trying to manage an APIC cluster, but the README extract you have provided appears to be from the cisco-aci-mso NED, which manages MSO instances rather than APICs. If you want to manage an APIC cluster, try using the cisco-apicdc NED instead.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 08:54:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-aci-authentication-issue/m-p/4149599#M5647</guid>
      <dc:creator>tcragg1</dc:creator>
      <dc:date>2020-09-11T08:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: NSO ACI Authentication Issue</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-aci-authentication-issue/m-p/4149739#M5648</link>
      <description>&lt;P&gt;Yeah I am indeed trying to manage some individual clusters, so your response makes sense. It seems then that I may have the wrong NED then. I'm working to investigate that now, I think your solution is likely correct but I'm going to leave this thread open for the moment and will circle back to provide full closure and confirm the solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks much for the reply.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 14:08:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-aci-authentication-issue/m-p/4149739#M5648</guid>
      <dc:creator>RyanWayno20056</dc:creator>
      <dc:date>2020-09-11T14:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: NSO ACI Authentication Issue</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-aci-authentication-issue/m-p/4149970#M5649</link>
      <description>&lt;P&gt;Thanks again tcragg1 for the redirect here. I was able to obtain the&amp;nbsp;&lt;SPAN&gt;cisco-apicdc NED instead and looking at the readme, it's indeed quite a different process for connecting. I'll give that a go next week but based on what I read I don't anticipate any issue there.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've seen this question go unanswered in other threads so to be clear on the question for anyone who might have the answer:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Is there any documentation on how to actually &lt;STRONG&gt;USE the NED&lt;/STRONG&gt;, not how to set it up and connect but like actual code samples or a guide perhaps?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 22:02:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-aci-authentication-issue/m-p/4149970#M5649</guid>
      <dc:creator>RyanWayno20056</dc:creator>
      <dc:date>2020-09-11T22:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: NSO ACI Authentication Issue</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-aci-authentication-issue/m-p/4150606#M5651</link>
      <description>&lt;P&gt;There is a documentation bundle for NSO that you should be able to get through the same channels you used to obtain NSO. The user guide in the bundle covers the basics of how to use the NSO CLI to manage device configurations, and the development guide covers the python and java APIs and how to build an NSO service.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you be more specific about what kind of use cases you are looking for? Just to directly manage the device configuration through the NSO CLI, implementing services to manage parts of the configuration, or something else?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 09:20:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-aci-authentication-issue/m-p/4150606#M5651</guid>
      <dc:creator>tcragg1</dc:creator>
      <dc:date>2020-09-14T09:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: NSO ACI Authentication Issue</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-aci-authentication-issue/m-p/4150733#M5652</link>
      <description>&lt;P&gt;Yeah I have the documentation bundle that I think you are referring to, this ships with NSO. I am semi-familiar with writing code for NSO and have built various services in it already, however those center around ISO and IOS-XR devices. I'm curious if there is anything specific to ACI and the APICDC NEDs, like code examples or something and how specifically to interact with those devices?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sure once I get the NED installed I can see what's available at CLI to get some clues, but I haven't been able to find any module examples specific to this platform in the searching I have done up to this point.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 14:10:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-aci-authentication-issue/m-p/4150733#M5652</guid>
      <dc:creator>RyanWayno20056</dc:creator>
      <dc:date>2020-09-14T14:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: NSO ACI Authentication Issue</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-aci-authentication-issue/m-p/4153174#M5657</link>
      <description>&lt;P&gt;If you are already familiar with NSO but haven't used NSO to manage an ACI fabric before, the simplest way to start probably is to look through the data structure in the NSO CLI. The basic principles around configuration management and services are still going to be the same as what you have done with IOS and IOS-XR devices.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do have a handful of proof of concept NSO ACI services I built some time ago. Below is a sample of the python code from a service I built to manage Attachable Entity Profiles in ACI, if that is helpful:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;class ServiceCallbacks(Service):

    # The create() callback is invoked inside NCS FASTMAP and
    # must always exist.
    @Service.create
    def cb_create(self, tctx, root, service, proplist):
        self.log.info('Service create(service=', service._path, ')')
        conf = root.devices.device[service.hostname].config
        conf.apic.infraInfra.infraAttEntityP.create(service.aep)
        aep = conf.apic.infraInfra.infraAttEntityP[service.aep]
        if service.descr:
            aep.descr = service.descr
        if service.enable_infrastructure_vlan:
            aep.infraProvAcc.name = 'provacc'
            aep.infraProvAcc.dhcpInfraProvP.create()
            aep.infraProvAcc.dhcpInfraProvP.mode = 'controller'
        for l2 in service.l2_ext_domain:
            domain = f'uni/l2dom-{l2}'
            aep.infraRsDomP.create(domain)
        for l3 in service.l3_ext_domain:
            domain = f'uni/l3dom-{l3}'
            aep.infraRsDomP.create(domain)
        for phy in service.phy_domain:
            domain = f'uni/phys-{phy}'
            aep.infraRsDomP.create(domain)
        for vmm in service.vmm_domain:
            domain = f'uni/vmmp-VMware/dom-{vmm}'
            aep.infraRsDomP.create(domain)&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Sep 2020 16:34:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-aci-authentication-issue/m-p/4153174#M5657</guid>
      <dc:creator>tcragg1</dc:creator>
      <dc:date>2020-09-17T16:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: NSO ACI Authentication Issue</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-aci-authentication-issue/m-p/4153224#M5658</link>
      <description>&lt;P&gt;I was able to get connected to a cluster and sync it's configuration successfully. Looking at the NSO CLI I see what's going on here. It looks pretty much like what we do with IOS and IOSXR just using ACI API format instead. I think I have what I need to run with it from here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you, I appreciate your replies to this thread. You've been very helpful.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 17:54:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/nso-aci-authentication-issue/m-p/4153224#M5658</guid>
      <dc:creator>RyanWayno20056</dc:creator>
      <dc:date>2020-09-17T17:54:34Z</dc:date>
    </item>
  </channel>
</rss>

