Skip to main content

A Python package to program the Cisco ACI through the APIC using the supported 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.1.tar.gz (12.6 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.1-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: devaci_module-1.1.tar.gz
  • Upload date:
  • Size: 12.6 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.1.tar.gz
Algorithm Hash digest
SHA256 1d62fe7cc70d4a321f1933e391913f2458f984218ae8f63772f5407b7d2d9a5f
MD5 313454a39459219db17d53851ad6b5d4
BLAKE2b-256 060bdc1aa0ba977b30cc24a7cb18dd4139288ec5edcb23f6086202d712dce2db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: devaci_module-1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fd1e001abc201647d837a28a42e28394997ed4dc321a0a3736679da83c699fe8
MD5 b9da48140b292236034c19e8886359ac
BLAKE2b-256 c7095d0fe4db9a395169832674a84d52fb0a15eecf75f13d775667981b22ac4d

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