Homelab: [homelab-agents] - Session 2025-11-30
Added NetBox DHCP pool configuration automation scripts. Created tools to reserve DHCP pool IP ranges (.100-.150) via NetBox API, preventing them from showing as "available" for static assignment. Changes: - Created sys-apps-netbox-dhcp-setup.py: Creates IP Range objects for DHCP pools - Created sys-apps-netbox-reserve-dhcp-ips.py: Reserves individual IPs as "Reserved" status - Updated sys-apps-session-summary.md with comprehensive session documentation - Updated CLAUDE.md with session 2025-11-30 history entry - Configured 255 IPs across 5 VLANs (51 IPs per /24 subnet) - Established DHCP pool standard: .100-.150 for all networks Repository: http://100.120.125.113:3000/pdm/homelab-agents Next Session Focus: Document NetBox token management and create dhcp-pool tag 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
20
CLAUDE.md
20
CLAUDE.md
@@ -107,6 +107,26 @@ This is a shared repository containing Claude Code agents that can be deployed a
|
||||
|
||||
## Session History
|
||||
|
||||
### Session 2025-11-30
|
||||
- **Phase**: NetBox DHCP pool configuration automation
|
||||
- **VPS**: sys-apps
|
||||
- **Repository**: homelab-agents
|
||||
- **Accomplishments**:
|
||||
- Created sys-apps-netbox-dhcp-setup.py to create IP Ranges for DHCP pools via NetBox API
|
||||
- Created sys-apps-netbox-reserve-dhcp-ips.py to reserve individual IPs .100-.150 as "Reserved" status
|
||||
- Configured 5 VLANs with DHCP pool reservations (255 IPs total)
|
||||
- Established DHCP pool standard: .100-.150 (51 IPs per /24 subnet)
|
||||
- Resolved NetBox showing DHCP pool IPs as "available" for static assignment
|
||||
- **Key Decisions**:
|
||||
- Two-step approach: IP Ranges (logical grouping) + Individual IPs (actual reservation)
|
||||
- Status "Reserved" is correct for DHCP pools (allocated to DHCP, not assigned to device)
|
||||
- Scripts placed in ~/.homelab-agents (infrastructure tools, reusable across VPS)
|
||||
- API token authentication via environment variable or command-line argument
|
||||
- **Next Steps** (Prioritized):
|
||||
- Document NetBox token management and rotation policy
|
||||
- Create "dhcp-pool" tag in NetBox UI for easier filtering
|
||||
- Consider automation for new VLAN creation
|
||||
|
||||
### Session 2025-11-28
|
||||
- **Phase**: Documentation cleanup and naming convention updates
|
||||
- **VPS**: sys-apps (renamed from 108-system-apps)
|
||||
|
||||
Reference in New Issue
Block a user