mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-09-03 05:12:54 +02:00
Implements structured JSON diagnostic output for node state export with full schema documentation. This feature provides machine-readable diagnostics for automated analysis, monitoring, and AI/MCP integration. Key changes: - Add `zerotier-cli diagnostic` command for JSON node state export - Add `zerotier-cli dump -j` as alias for JSON output - Add `zerotier-cli diagnostic --schema` to print JSON schema - Implement platform-specific interface collection (Linux, BSD, macOS, Windows) - Create modular diagnostic/ directory with isolated try/catch error handling - Add comprehensive JSON schema (diagnostic_schema.json) for validation - Include build-time schema embedding for offline access - Add Python and Rust scripts for schema embedding during build - Update build systems to compile new diagnostic modules The diagnostic output includes: - Node configuration and identity - Network memberships and settings - Interface states and IP addresses - Peer connections and statistics - Moon orbits - Controller networks (if applicable) All diagnostic collection is wrapped in try/catch blocks to ensure partial failures don't prevent overall output generation. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
---|---|---|
.. | ||
diagnostic_schema_embed.c | ||
diagnostic_schema_embed.h | ||
dump_interfaces.hpp | ||
dump_interfaces_apple.cpp | ||
dump_interfaces_bsd.cpp | ||
dump_interfaces_linux.cpp | ||
dump_interfaces_netbsd.cpp | ||
dump_interfaces_win32.cpp | ||
dump_sections.cpp | ||
dump_sections.hpp | ||
node_state_interfaces_apple.cpp | ||
node_state_interfaces_apple.hpp | ||
node_state_interfaces_bsd.cpp | ||
node_state_interfaces_bsd.hpp | ||
node_state_interfaces_linux.cpp | ||
node_state_interfaces_linux.hpp | ||
node_state_interfaces_netbsd.cpp | ||
node_state_interfaces_netbsd.hpp | ||
node_state_interfaces_win32.cpp | ||
node_state_interfaces_win32.hpp | ||
node_state_json.cpp | ||
node_state_json.hpp | ||
node_state_sections.cpp | ||
node_state_sections.hpp |