-
Notifications
You must be signed in to change notification settings - Fork 59
Description
Hello,
I would like to propose an improvement.
Context / Problem
Currently, the Remote Address field allows free text input.
If the IP address does not exist in NetBox, it is automatically created.
If it already exists in multiple VRFs, the plugin may pick the first match.
In large environments (especially large telecom operators), this behavior can be problematic:
- Auto-created IP addresses may miss critical attributes:
- Tenant
- VRF
- Status
- Tags
- If the same IP exists in multiple VRFs, selecting the first match is often incorrect
- It increases the risk of data inconsistency and configuration errors
Proposed Feature
Add an optional plugin setting, for example:
REMOTE_ADDRESS_STRICT = True / False
When enabled:
- The Remote Address field would only allow selecting an existing IP address
- No free-text input
- No automatic IP creation
- Ideally, the selector would allow filtering/searching (VRF, tenant, etc.)
When disabled: - Keep the current behavior for backward compatibility
Additional Idea (Optional)
It might also be useful to add selectors on fields where multiple objects may exist, to improve usability and object selection accuracy in large databases.
Benefits
- Better data integrity
- Safer behavior for large-scale / multi-VRF environments
- Still backward-compatible via a plugin setting
If this proposal is acceptable, I would be happy to work on a Pull Request.
Thank you for your work on this plugin, and for considering this enhancement.
Best regards,