Skip to main content

This are codes for creating MO in APIC through Python API

Project description

All the codes are in object oriented style.

Each of them does a small configuration on APIC – to create a MO. For example, would create a tenant.

Programmer can simply write their customized script by inheriting the class createMo in “”.

#Scripts descriptions: the basic class/module. It also contains useful functions that help programmers for writing their customized scripts.

The others are generic scripts. Each of them does a small configuration. For example, would create a contract.


All the codes support three different input methods: wizard, yaml and cli.

1. wizard: configure a mo by following a wizard. Usage: <br>python wizard <br>To get the help info: python wizard –h

2. yaml: configure a mo with a config file (yaml format). Usage: <br>python yaml createFilter.yaml <br>To get the help info: python yaml –h

3. cli: configure a mo based on you python arguments. It contains key arguments and optional arguments. Flags are used in order to call the optional arguments. Usage: <br>python cli <ip-address> <user-name> <password> <tenant> <filter> [–e ip –i tcp] <br>To get the help info: python cli –h

#Delete a mo:

Using -d flag. Example if you want to delete a filter, you can call with a -d flag. The delete method is supported in all three input methods. For example:

<br>python createFilter -d yaml <br>python createFilter -d wizard <br>python createFilter -d cli <ip-address> <user-name> <password> <tenant> <filter>

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 apicPython, version 0.3.1
Filename, size File type Python version Upload date Hashes
Filename, size apicPython-0.3.1.tar.gz (47.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page