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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file DIAL_API-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: DIAL_API-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b955e02faee7d84e221eb3df9d8f22fd66fb44bbf6f04336562c58318fb0334 |
|
MD5 | 684167bd1ca24bdac3ef2579148346bd |
|
BLAKE2b-256 | 18de9258c6b1e14b64e72810663b7cef41da6f9417e967df625951d16a002d9b |