Skip to main content

Dail_API

Project description

Cisco Router NETCONF Script

This Python script retrieves configuration data from a Cisco router using NETCONF. It utilizes the ncclient library for NETCONF communication and optionally leverages Google's Generative AI service (currently Gemini) for XML request generation.

Features:

Connects to Cisco IOS XE or IOS XR routers.
Retrieves configuration data using NETCONF.
Extracts leaf nodes from the configuration data.
Allows user selection of specific attributes through:
    Line number from a generated file.
    Attribute name search.
Creates the corresponding NETCONF XML request (optional, uses Google Generative AI).

Installation:

Bash

Plain Text

pip install -r requirements.txt

Usage:

Configure Script:
    Update GOOGLE_API_KEY environment variable with your Google API key (optional for Generative AI).
    Edit main function to specify Cisco router version (IOS XE or IOS XR).
Run Script:
    Execute python main.py
Follow Prompts:
    Provide router details (IP, username, password).
    Select attributes for retrieval (optional, uses Google Generative AI).

Dependencies:

ncclient
xmltodict
argparse
langchain (optional, for Generative AI)

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

DIAL_API_THULASI2024-1.0.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

DIAL_API_THULASI2024-1.0.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file DIAL_API_THULASI2024-1.0.0.tar.gz.

File metadata

  • Download URL: DIAL_API_THULASI2024-1.0.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for DIAL_API_THULASI2024-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7f2cfae3b9a7de975d251664ab7d33f0effdbf92dbef079f9adbc597c7a08432
MD5 f140fc72ce48305abd1d3e67bc8b0894
BLAKE2b-256 e67b913e47b5a2d26e17656f3e7b529171217229b7a328fd3d7aefdab4010b22

See more details on using hashes here.

File details

Details for the file DIAL_API_THULASI2024-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for DIAL_API_THULASI2024-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 039e6da973758b6cd5e6d98ef9f74b8e0b1dacda0cc42e8182c4006dab9e03f6
MD5 a9f2628a79788d38b7360bd0c116015c
BLAKE2b-256 d5c0da47d7aae53d43a3af962b0f286f2ac9cf7f1ed72efde7202d3c75489e38

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page