Skip to content

Comments

Release 0.0.11 - NetBox 4.2.x#57

Open
cruse1977 wants to merge 15 commits intoiDebugAll:mainfrom
cruse1977:main
Open

Release 0.0.11 - NetBox 4.2.x#57
cruse1977 wants to merge 15 commits intoiDebugAll:mainfrom
cruse1977:main

Conversation

@cruse1977
Copy link

This PR updates the plugin significantly.

  • v0.0.11 for NetBox 4.2.x support
  • Resolves a number of open issues
  • Implements a couple of requested features (Navigation + Optional Site on Number)
  • Removes legacy conditionals and standardises models
  • Standardises compatibility matrix on README
  • Converts to pyproject.toml away from setup.py

Tested against NetBox 4.2.3 (Docker)

@iDebugAll
Copy link
Owner

Hey @cruse1977,

Thank you for the great PR!

I'm currently testing this in my dev environment. A few points I came across already:

  1. Dockerfile needs some minor fixes to build properly:
FROM netboxcommunity/netbox:latest

COPY ./phonebox_plugin /source/phonebox_plugin/phonebox_plugin/
COPY ./pyproject.toml /source/phonebox_plugin/
COPY ./MANIFEST.in /source/phonebox_plugin/
COPY ./README.md /source/phonebox_plugin/
RUN /usr/local/bin/uv pip install --no-cache-dir /source/phonebox_plugin/
  1. Could you make the Site field a multi-choice field? In many organizations, the Number-Site relation can be many-to-many. For example, a number could be received via both a SIP trunk in Site_DC1 and an E1 circuit in Site_DC2 in the same region.

@cruse1977
Copy link
Author

Sure, will do

@jscooksey
Copy link

any chance this will be merged soon?

@wallacj1899
Copy link

I too am wondering when we think this will be merged. Are there issues? How likely is it to be merged?

brourk added a commit to brourk/phonebox_plugin that referenced this pull request Feb 20, 2026
This release merges key improvements from upstream PR iDebugAll#57 and adds
comprehensive export functionality.

Major Changes:
- Migrated models from ChangeLoggedModel to NetBoxModel
- Added site field to Number model
- Enabled CSV export and Export Template support
- Updated for NetBox 4.2.0 through 4.9.x compatibility
- Removed legacy version checking code

Model Updates:
- Number and VoiceCircuit now inherit from NetBoxModel
- Added optional site field to Number (ForeignKey to dcim.Site)
- Updated csv_headers to include site
- Updated get_absolute_url() to use new URL names

Forms & Filters:
- Added site field to all Number forms (Filter, Edit, BulkEdit, CSV)
- Updated NumberFilterSet to include site filtering
- Simplified imports by removing conditional version checks

Views & URLs:
- Removed all version detection logic
- Standardized template names for NetBox 4.x
- Updated URL patterns with backward compatibility aliases

API:
- Added site field to NumberSerializer
- Maintained nested serializer pattern for consistency

Export Functionality:
- CSV export automatically enabled via ObjectListView
- Export Template support via NetBoxModel inheritance
- Both Number and VoiceCircuit appear in /extras/export-templates/

Database:
- Added migration 0005_add_site_to_number.py

Documentation:
- Created CLAUDE.md for AI assistant guidance
- Updated setup.py with new version and Python 3.10-3.12

Fixes:
- Issue iDebugAll#55, iDebugAll#59: Export functionality implemented
- Issue iDebugAll#15: Site field added to Number model
- Issue iDebugAll#47: Permission fixes from upstream

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
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.

4 participants