cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
520
Views
0
Helpful
11
Replies
Highlighted
Enthusiast

Download latest cobra SDK packages from sources

Hi board,

I'm new to cobra and I am trying to install the SDK. I don't have access to an APIC server and the sandbox (https://sandboxapicdc.cisco.com) doesn't provide the SDK.

So here's what I did:

 

Cloning the GitHub repo (https://github.com/datacenter/cobra) and installing the package within a virtualenv (python3 setup.py install)
=> I get dependency errors. The acimodel package is missing.

 

There is a link to the acimodel in the README.md "Design Goals" section (https://github.com/datacenter/cobra#design-goals):

Spoiler
"Robust. Integrate with ACI Model for client side validation and testing."

However, the link to the ACI model (https://github.com/datacenter/acimodel) does not work (repo not found).

Everyone's tags (4)
11 REPLIES 11
Highlighted
Cisco Employee

Re: Download latest cobra SDK packages from sources

Hi Johannes:

I am not python expert, but I may have a couple of clues to check for. 

Before ACI 4.2, we only supported Python 2.7 and we installed the SDK using .egg files.

4.2 and later, we added support for Python 3 and we use .whl files to install. 

You need to install two files.  acicobra and acimodel for your version if Python (i.e the .whl files for Python 3).

Highlighted
Enthusiast

Re: Download latest cobra SDK packages from sources

Hi,

thanks for your reply.

Yes, acimodel is needed - however the repo is dead (https://github.com/datacenter/acimodel), which is linked in https://github.com/datacenter/cobra#design-goals

So, obviously the only source is the SDK on an APIC ... what to do if you don't have an APIC and want to develop an application for it?

Highlighted
Cisco Employee

Re: Download latest cobra SDK packages from sources

Well...I could put a specific version for you on Box and you can download it.  I realize, not scalable but it helps you directly for the short term. 

 

Highlighted
Rising star

Re: Download latest cobra SDK packages from sources

Hi,

You can download and install an APIC simulator and download the acimodel from it.

I know, not the most optimal way, but is an alternative.

On the other hand, I fully support on having a github repo with all versions of acimodel!

 

@joezerskcan you make a request internally to have the acimodel exposed on github?

 

Cheers,

Sergiu

 

 

Highlighted
Enthusiast

Re: Download latest cobra SDK packages from sources

Hi Sergiu,

thank you for the reply.

I haven't tried the simulator yet. I thought it will have the same limitation as the sandbox. In the APIC sandbox, the sdk is not available. So maybe I'll give it a try.

However, +1 for acimodel in a public github repo.

 

Best regards

Johannes

Highlighted
Enthusiast

Re: Download latest cobra SDK packages from sources

Hi @Johannes Luther 

 

Try the simulator. I have access to a hardware simulator (not the DevNet Sandbox which I think has it deliberately blocked) and I can confirm it is available.  If you poke around you will see posts from others who share your pain.  I looked around about a month ago and still was not able to find any place to get the SDK apart from an actual APIC.  No idea why and makes no sense.

 

Here is the link that works for me on my simulator:

https://<sim IP>/cobra/_downloads/

Highlighted

Re: Download latest cobra SDK packages from sources

Hi Claudia and @msdaniluk, which version of sim are you using?
I'm running a 4.2(3j) sim VM and it just doesn't have anything to download.

 

ciscosim.png

Highlighted
Enthusiast

Re: Download latest cobra SDK packages from sources

Hi @tuanquangnguyen 

 

I was using a hardware simulator running 4.1(1k) with the URL

https://<sim IP>/cobra/_downloads/

 

Note that I did not include any port number in the URL.

 

Highlighted

Re: Download latest cobra SDK packages from sources

Hi Claudia,

The port number was just my simulator being port forwarded, for ease of use. Have tried accessing via the IP alone to download the SDK, but to no avail.
I'm downloading a 4.2(3q) OVA, let's see if the SDK is bundled with that.

Thanks for your help.
Highlighted
Enthusiast

Re: Download latest cobra SDK packages from sources

It is in the hardware simulator of that version.  I've not had a chance to try the OVA but it looks like you are on that already.  
cobra-2020-04-23_10-13-41.jpg

Highlighted
Rising star

Re: Download latest cobra SDK packages from sources

Hi @Johannes Luther 

Lurking around Cisco DevNet website, I found a page where both latest version of acimodel and acicobra are shared:

https://developer.cisco.com/docs/aci/#!cobra-sdk-downloads/download-cobra-sdk-files 

 

Cheers,

Sergiu