- Fix missing newline at end of __init__.py - Add certifi and charset-normalizer packages to uv.lock - Update lock file with HTTP-related dependencies
37 lines
730 B
Python
37 lines
730 B
Python
"""
|
|
NetBox Client Module for Fabric Orchestrator.
|
|
|
|
This module provides a NetBox API client for fetching fabric intent data
|
|
using pynetbox.
|
|
|
|
Usage:
|
|
from src.netbox import FabricNetBoxClient
|
|
|
|
client = FabricNetBoxClient(
|
|
url="http://netbox.local",
|
|
token="your-token"
|
|
)
|
|
|
|
# Get all leaf devices
|
|
leaves = client.get_leaf_devices()
|
|
|
|
# Get complete intent for a device
|
|
intent = client.get_device_intent("leaf1")
|
|
"""
|
|
|
|
from .client import (
|
|
FabricNetBoxClient,
|
|
NetBoxAPIError,
|
|
NetBoxConnectionError,
|
|
NetBoxError,
|
|
NetBoxNotFoundError,
|
|
)
|
|
|
|
__all__ = [
|
|
"FabricNetBoxClient",
|
|
"NetBoxError",
|
|
"NetBoxConnectionError",
|
|
"NetBoxNotFoundError",
|
|
"NetBoxAPIError",
|
|
]
|