Skip to main content

A Package to onboard Cisco devices to Netbox

Project description

# Cisco NetBox Onboarding

![Python](https://img.shields.io/badge/Python-3.x-blue.svg) ![NetBox](https://img.shields.io/badge/NetBox-API-green.svg) ![License](https://img.shields.io/badge/License-GNU-yellow.svg)

A Python script to streamline the onboarding of Cisco devices into [NetBox](https://netbox.dev/), a popular IP address management (IPAM) and data center infrastructure management (DCIM) tool. This tool leverages the NetBox API to automate the creation of sites, devices, interfaces, and IP addresses based on a YAML configuration file.

## Overview

The cisco_netbox_onboarding script simplifies the process of adding Cisco network devices to NetBox. By defining device details in a YAML file, users can efficiently populate NetBox with accurate inventory data, reducing manual entry and potential errors. This is particularly useful for network engineers managing Cisco-powered infrastructures.

## Features

  • Automated Onboarding: Creates NetBox objects (sites, devices, interfaces, IPs) from a YAML config.

  • Cisco-Focused: Tailored for Cisco devices with platform support (e.g., cisco_ios).

  • Flexible Configuration: Define multiple devices, interfaces, and IP assignments in a single YAML file.

  • API Integration: Utilizes the NetBox REST API for seamless data insertion.

  • Error Handling: Basic validation and feedback for API interactions.

## Prerequisites

Before using this script, ensure you have:

  • Python 3.x installed on your system.

  • A running NetBox instance with API access enabled.

  • A valid NetBox API token (generated from the NetBox UI under your user profile).

  • Access to the repository’s required Python packages (listed in requirements.txt).

## Installation

To install Cisco NetBox Onboarding, simply use pip:

` $ pip install cisco_netbox_onboarding `

or

  1. Clone the Repository: `bash git clone https://github.com/tkdebnath/cisco_netbox_onboarding.git cd cisco_netbox_onboarding `

  2. Set Up a Virtual Environment (optional but recommended): `bash python3 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate `

  3. Install Dependencies:: `bash python3 -m pip install -r requirements.txt `

  4. Configure Environment Variables: `plaintext URL=http://<your-netbox>/ API_KEY=<your-api-token> NETMIKO_USERNAME= NETMIKO_PASSWORD= `

## Usage/Examples Check USAGE.md

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

cisco_netbox_onboarding-0.0.11.tar.gz (52.3 kB view details)

Uploaded Source

Built Distribution

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

cisco_netbox_onboarding-0.0.11-py3-none-any.whl (42.9 kB view details)

Uploaded Python 3

File details

Details for the file cisco_netbox_onboarding-0.0.11.tar.gz.

File metadata

  • Download URL: cisco_netbox_onboarding-0.0.11.tar.gz
  • Upload date:
  • Size: 52.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for cisco_netbox_onboarding-0.0.11.tar.gz
Algorithm Hash digest
SHA256 6ff2e829e59bca439d14ee8fd4d47c8ee54062476afa38fa116b55c6f8207a29
MD5 4f99d4eb996afa9081d014cc554ea04a
BLAKE2b-256 418fc35d9bfda4c1d972e6caaa2c34d5ca6a1ac62996daf64571754df86c939a

See more details on using hashes here.

Provenance

The following attestation bundles were made for cisco_netbox_onboarding-0.0.11.tar.gz:

Publisher: release.yaml on tkdebnath/cisco_netbox_onboarding

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cisco_netbox_onboarding-0.0.11-py3-none-any.whl.

File metadata

File hashes

Hashes for cisco_netbox_onboarding-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 6bd529616759bfb802acbd79e8cba4e13e88a90a37463e8a9446065a3041f053
MD5 c72438a79159af188554a002223b99a3
BLAKE2b-256 8d4ff1ade80e043ffd740d172fbe81db30c38e8a85931b68a2f1e1db9fab1444

See more details on using hashes here.

Provenance

The following attestation bundles were made for cisco_netbox_onboarding-0.0.11-py3-none-any.whl:

Publisher: release.yaml on tkdebnath/cisco_netbox_onboarding

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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