cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2171
Views
5
Helpful
7
Replies

where to get cobra library to import in aci python samples

Hi

I have downloaded ACI Python samples provided by cisco on github.

 

I searched using Python pip search for cobra but couldn't find any relevant library.

 

Please let me know where could I get the python cobra library for ACI samples.

 

Many Thanks

 

Mehran

1 Accepted Solution

Accepted Solutions

mtimm
Cisco Employee
Cisco Employee

To clarify, the 1.0(2*) versions do include the eggs on the apic but if you download them from that location you will need to rename them.

Original NameNew Name
acicobrasdk.egg

acicobra-1_2j-py2.7.egg OR
acicobra-1_2m-py2.7.egg

acicobramodel.eggacimodel-1_2j_py2.7.egg OR
acimodel-1_2m_py2.7.egg

 

Failure to rename them can result in the install process not working especially if installing with [ssl] setuptools extras option.  In addition the uninstall process may not be very obvious.  If these are not renamed, pip uninstall won't uninstall them.  You can use easy_install -m and then recursively remove the directory mentioned in the output of this command if they were installed without renaming.

We hope to have the eggs linked off of the api docs on DevNet but it will take some time to update them.

Mike

 

Edit: Also we are in the process of fixing the names of the on the apic eggs but I'm not sure what version of apic code that fix will go into and we are including a direct link from the UI to the SDK docs on the apic under the "welcome, username" menu.

View solution in original post

7 Replies 7

stcorry
Cisco Employee
Cisco Employee

Hello Mehran! You should be able to download cobra on your APIC. Download it by going to https://yourapicurl/cobra on newer releases (1.0(2x)) and above. For earlier releases, it is in the APIC download section for 1.0(1k).

 

You can find more documentation on Cobra here: https://developer.cisco.com/site/apic-dc/documents/pythonapi/

 

 

mtimm
Cisco Employee
Cisco Employee

To clarify, the 1.0(2*) versions do include the eggs on the apic but if you download them from that location you will need to rename them.

Original NameNew Name
acicobrasdk.egg

acicobra-1_2j-py2.7.egg OR
acicobra-1_2m-py2.7.egg

acicobramodel.eggacimodel-1_2j_py2.7.egg OR
acimodel-1_2m_py2.7.egg

 

Failure to rename them can result in the install process not working especially if installing with [ssl] setuptools extras option.  In addition the uninstall process may not be very obvious.  If these are not renamed, pip uninstall won't uninstall them.  You can use easy_install -m and then recursively remove the directory mentioned in the output of this command if they were installed without renaming.

We hope to have the eggs linked off of the api docs on DevNet but it will take some time to update them.

Mike

 

Edit: Also we are in the process of fixing the names of the on the apic eggs but I'm not sure what version of apic code that fix will go into and we are including a direct link from the UI to the SDK docs on the apic under the "welcome, username" menu.

Hi - is it possible to download the cobra sdk from one of the sandbox APIC-EMs?

I tried using the path https://<apic ip>/cobra/_downloads/acicobrasdk.egg but got URL errors.

Thanks

 

Hello,

 

APIC-EM does not use the cobra SDK.  The cobra SDK is for the APIC-DC.

 

Mike

Thanks for the prompt reply, Mike.  Is there a specific document where this is mentioned?  Looks like I missed that.

 

There is great confusion just about everywhere I turn about APIC-EM and APIC-DC.  It is unlikely you will see any documentation where APIC-DC is referred to as "APIC-DC."  Rather it is more likely that product refers to itself as simply "APIC."  The only place I've seen this terminology used heavily is on the Cisco Developer Network where the APIC-EM seems to have a large presence.  

 

So it's kind of non-obvious but all the docs that refer to the APIC Cobra SDK only mention "APIC" which hints that it's APIC-DC, not to mention the two products fit in entirely different parts of the network and have totally different uses and the Cobra SDK is about 10K times more expansive than any SDK that APIC-EM would need at this point (just my opinion, I'd point at the model reference on Cisco DevNet as proof but DevNet seems to be down now).

 

Thanks!

 

Mike

Thanks Mike, this is very helpful.  

Review Cisco Networking for a $25 gift card

Save 25% on Day-2 Operations Add-On License