Using the Python SDK
Python is a great language and you can do so much with it. While not every network engineer wants to know a programming language, knowing the basics of Python will make life easier, especially as the current trend of opening up API access to physical hardware progresses.
Getting ready
We have a couple of requirements:
- Python 2.7
easy_install
pip
Â
Â
How to do it...
- Once we have these installed, we start by installing the SDK. We need two
egg
 files, which can be downloaded fromÂhttps://<APIC address>/cobra/_downloads/
. - Download the two egg files (
acicobra-1.1_1j-py2.7.egg and acimodel-1.1_1j-py2.7.egg
). - Install the two files:
easy_install -Z /path/to/acicobra-1.1_1j-py2.7.egg easy_install -Z /path/to/acimodel-1.1_1j-py2.7.egg