Skip to main content

A Python library providing programmatic access to Cisco ACI via 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", override=True)

SETTINGS = {
    "username": os.getenv("USER"),
    "password": os.getenv("PASS"),
    "ip": os.getenv("IP"),
    "testing": False,
    "file_output": "output",
    "working_folder": ROOT,
}


if __name__ == "__main__":
    aci = DeployClass(**SETTINGS)
    aci.xlsx = [
        "configurations/config1.xlsx",
    ]
    aci.template = [
        "templates/create_tenants.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.5.1.tar.gz (20.5 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.5.1-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: devaci_module-1.5.1.tar.gz
  • Upload date:
  • Size: 20.5 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.5.1.tar.gz
Algorithm Hash digest
SHA256 3b0f0db5c075ac13bea05a2e9d1d0413e2e89304d55a58354e4ee6b643239b14
MD5 e48020fa6ddd2538b526b89cf261229b
BLAKE2b-256 b2596b34b871cacf583f5fe48515fd0eac309e6c97870c05b0b1d70c82a4baf3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: devaci_module-1.5.1-py3-none-any.whl
  • Upload date:
  • Size: 21.8 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.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c9f7bc50832937dcf86e2635c985def267ccf84e26977ffe03982ad0c4d12241
MD5 0bf0be1b508eea3075d0776c2cbd9f07
BLAKE2b-256 01e74ab22ee44ec98190648af974c834c0ff6c6653b7bc937c2cad8cf39f8cab

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