Skip to content

sebastien-dargoeuves-ipf/vlan-info-8021q

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

VLANs Information Extractor

This script extracts the VLANs information from the SDN > ACI table, and uses it to replace the vlanId in the Technology > VLANs table. It generates a CSV file with the following columns:

  • hostname
  • siteName
  • vlanName
  • vlanId
  • status
  • stdStatus

Prerequisites

  • Python 3.8 or higher
  • IP Fabric platform with API access
  • Python package: ipfabric

Installation

  1. Clone this repository or download the vlans.py script.
  2. Install the required Python package:
pip install ipfabric

How to Use

  1. Copy the .env.sample file and rename it to .env:

    cp .env.sample .env
  2. Open the .env file and set the following environment variables:

    • IPF_URL: Your IP Fabric platform URL
    • IPF_TOKEN: Your IP Fabric API token
    • IPF_VERIFY: (optional) Set to "True" to verify the SSL certificate. Default is "False".
    • REPORT_OUTPUT: (optional) Path to the output CSV file. Default is "vlan_report.csv".
  3. Run the script:

python vlans.py

Output

The script will generate a CSV file with the VLANs information. The file will be saved to the path specified in the REPORT_OUTPUT environment variable.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages