Skip to content

Conversation

@berendt
Copy link
Member

@berendt berendt commented Nov 24, 2025

Add comprehensive connectivity verification before proceeding with inventory generation. When Netbox is unreachable or API access fails, the application now exits immediately with a clear error message.

Changes:

  • Add verify_connectivity() method to NetBoxClient class
  • Test actual API access via devices endpoint to validate permissions
  • Add connectivity check in main.py after client initialization
  • Output German error message when connectivity fails
  • Exit with code 1 on connectivity failure

The check ensures no invalid inventory is created when Netbox is unavailable.

AI-assisted: Claude Code

Add comprehensive connectivity verification before proceeding with
inventory generation. When Netbox is unreachable or API access fails,
the application now exits immediately with a clear error message.

Changes:
- Add verify_connectivity() method to NetBoxClient class
- Test actual API access via devices endpoint to validate permissions
- Add connectivity check in main.py after client initialization
- Output German error message when connectivity fails
- Exit with code 1 on connectivity failure

The check ensures no invalid inventory is created when Netbox is unavailable.

AI-assisted: Claude Code

Signed-off-by: Christian Berendt <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants