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


if __name__ == "__main__":
    aci = DeployClass(**SETTINGS)
    aci.template = [
        ROOT / "examples/create_tenant1.j2",
        ROOT / "examples/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.3.tar.gz (13.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.3-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: devaci_module-1.3.tar.gz
  • Upload date:
  • Size: 13.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.3.tar.gz
Algorithm Hash digest
SHA256 704b2bf43276dc8e2cae7b597f06bd9dd6a1983a674fdc39789dbb8c349326ca
MD5 08a90e3d06fc96359318d0fcfd9f8933
BLAKE2b-256 ec3b4fea2eafe60e00f9b5afae2ff13d77b7e7894e98a74a92e65b2de61d1805

See more details on using hashes here.

File details

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

File metadata

  • Download URL: devaci_module-1.3-py3-none-any.whl
  • Upload date:
  • Size: 13.2 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 419b3a67c5a64a6252d5fb5f91b2c983b401f0360da1ae968c561db0971dcbc4
MD5 fc4cdbbf24a93f7ad5054f3c0c6b5a03
BLAKE2b-256 f1e4e72cf3b58dbfbc6aa0743474d7d018bd2ab5b9175614b33ef59ace4d841c

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