Skip to main content

A Python package to program the Cisco ACI using the official Cobra SDK

Project description

DEVACI Module

DEVACI module for python 3.x

Requirements

Before of install devaci module, you must install the acicobra and acimodel package. They can be downloaded from the APIC controller https://APIC_IP/cobra/_downloads/

$ pip install acicobra*
$ pip install acimodel*

Installation

$ pip install devaci_module

Requirement

Quickstart

Import the devaci_module library to use the package

from devaci_module import DeployClass
....

Below an example.

import os
from pathlib import Path
from devaci_module import DeployClass
from dotenv import load_dotenv


ROOT = Path(__file__).parent

load_dotenv(ROOT / ".env")

SETTINGS = {
    "username": os.getenv("USER"),
    "password": os.getenv("PASS"),
    "ip": os.getenv("IP"),
    "log": ROOT / "logging.json",
    "logging": True,
}


if __name__ == "__main__":
    aci = DeployClass(**SETTINGS)
    aci.template = [
        ROOT / "examples/create_tenant1.j2",
        ROOT / "examples/create_tenant2.j2",
    ]
    aci.deploy()

Project details


Download files

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

Source Distribution

devaci_module-1.2.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

devaci_module-1.2-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file devaci_module-1.2.tar.gz.

File metadata

  • Download URL: devaci_module-1.2.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.2

File hashes

Hashes for devaci_module-1.2.tar.gz
Algorithm Hash digest
SHA256 bc3013c0be0f9f6db91c734659473caaff2b64f53195b47e34a970600bffb6ba
MD5 f6e3aad6d4de54b5aa4dea5a98bc0051
BLAKE2b-256 4b521584a555db284a5428365c0fdd0bd1d843d81b7b201908803d5e1cfc58b8

See more details on using hashes here.

File details

Details for the file devaci_module-1.2-py3-none-any.whl.

File metadata

  • Download URL: devaci_module-1.2-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.2

File hashes

Hashes for devaci_module-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e16795a34f5619ad8fb84276115643ff379dbe94def986d9b40895bbe3c3d428
MD5 6be0147ba4b00e1817892a117d70c12e
BLAKE2b-256 a0b586014e530f6cac2361acb5141ef26e0003828b51ccc4dae1472613844b77

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page