11-04-2014 05:07 PM - edited 03-01-2019 04:47 AM
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
Solved! Go to Solution.
12-01-2014 02:05 PM
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 Name | New Name |
acicobrasdk.egg | acicobra-1_2j-py2.7.egg OR |
acicobramodel.egg | acimodel-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.
12-01-2014 01:32 PM
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/
12-01-2014 02:05 PM
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 Name | New Name |
acicobrasdk.egg | acicobra-1_2j-py2.7.egg OR |
acicobramodel.egg | acimodel-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.
06-01-2015 02:06 PM
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
06-01-2015 02:15 PM
Hello,
APIC-EM does not use the cobra SDK. The cobra SDK is for the APIC-DC.
Mike
06-01-2015 03:42 PM
Thanks for the prompt reply, Mike. Is there a specific document where this is mentioned? Looks like I missed that.
06-01-2015 04:44 PM
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
06-01-2015 04:53 PM
Thanks Mike, this is very helpful.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide