Skip to main content

Cisco ACI Developing Interface for PYthon

Project description

acidipy

Cisco ACI Python API : ACI Developing Interface for PYthon

  1. Install

    1.1 From GIT

    $ python setup.py build $ python setup.py install

    1.2 From PIP

    $ pip install acidipy

  2. Example

    import acidipy

    controller = acidipy.Controller(‘xxx.xxx.xxx.xxx’, ‘admin’, ‘password’) # Get controller connection

    tenant = controller.Tenant.create(name=’example-tenant’) # Create tenant bd = tenant.BridgeDomain.create(name=’example-bd’) # Create bridge domain ap = tenant.AppProfile.create(name=’example-ap’) # Create application profile epg = ap.EPG.create(name=’example-epg’) # Create endpoint group

    epg.relate(bd) # Relate endpoint group to bridge domain

    print controller.Tenant.list() # Retrive list of tenant print tenant.AppProfile(‘example-ap’).EPG.list() # Retrive list of endpoint group about tenant created print ap.EPG(‘example-epg’) # Retrive endpoing group by name

    print ap.parent() # Retrive example-ap’s parent print ap.children() # Retrive example-ap’s children print ap.detail() # Retrive example-ap’s whole attributes

    epg.delete() # Delete endpoint group ap.delete() # Delete application profile bd.delete() # Delete bridge domain tenant.delete() # Delete tenant

    controller.close() # Close controller connection

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for acidipy, version 0.13.0
Filename, size File type Python version Upload date Hashes
Filename, size acidipy-0.13.0-py3-none-any.whl (13.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size acidipy-0.13.0.tar.gz (12.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page