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"),
    "testing": False,
    "logging": True,
    "render_to_xml": True,
    "log": ROOT / "logging.json",
}


if __name__ == "__main__":
    aci = DeployClass(**SETTINGS)
    aci.xlsx = [
        ROOT / "configurations/config1.xlsx",
    ]
    aci.template = [
        ROOT / "templates/create_tenants.j2",
        ROOT / "templates/create_tenant1.j2",
        ROOT / "templates/create_tenant2.j2",
    ]
    aci.deploy()
    aci.show_output()

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.4.4.tar.gz (19.0 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.4.4-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: devaci_module-1.4.4.tar.gz
  • Upload date:
  • Size: 19.0 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.4.4.tar.gz
Algorithm Hash digest
SHA256 d4f38646f9c09936ff419c4346bbcf77440f984e755e508fbf05e35f01b57c94
MD5 d1053c907d39837ab017a964bc9b5b57
BLAKE2b-256 031b635053e92fb634e966be92cec47343c638c8a9fef92f07d8ad1a9adcabec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: devaci_module-1.4.4-py3-none-any.whl
  • Upload date:
  • Size: 19.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.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c524085d6daab8063ae2f2ef255bc0f722cb442f58405831ed40f813bfbcc8a8
MD5 66c8f75456e89010967b4a033969fb48
BLAKE2b-256 217ec2adc3ace8e566b90af937a8b59f5511011d05760fd19336432a8b0b6334

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