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 NETBOX_URL=http://<your-netbox>/ NETBOX_TOKEN=<your-api-token> `

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.4.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.4-py3-none-any.whl (42.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cisco_netbox_onboarding-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 3b638884fe8e63dd76e369f093e30261e311f9ee747659c484fafcc17e2c8a5b
MD5 823031d8b889852b5407ccf52f7cc44a
BLAKE2b-256 2e20e960432db5af94f8c360e41fb77540f14e1faca52e0b394171a7343b338a

See more details on using hashes here.

Provenance

The following attestation bundles were made for cisco_netbox_onboarding-0.0.4.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.4-py3-none-any.whl.

File metadata

File hashes

Hashes for cisco_netbox_onboarding-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 51414f3f379eae5f18666f515d00d40b9dbed4d51f4cfcc83f6aa9e79cb30e6c
MD5 64bd9acd9b0ada7ae572b0a0b2d630a0
BLAKE2b-256 32907d9c0de4b817226fc7d3170dd1728a4863c44203bd479ea6a94f5174f3c5

See more details on using hashes here.

Provenance

The following attestation bundles were made for cisco_netbox_onboarding-0.0.4-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