Disable "Add termination" button for P2P L2VPNs which already have 2 terminations #10033
Labels
status: accepted
This issue has been accepted for implementation
type: feature
Introduction of new functionality to the application
NetBox version
v3.3-beta2
Feature type
Change to existing functionality
Proposed functionality
Netbox enforces at model level that a P2P L2VPN can only have two terminations.
However in the GUI, if you are viewing a P2P L2VPN e.g.
/ipam/l2vpns/1/
, and it already has 2 terminations, then clicking "Add Termination" still takes you to the Add Termination page, allowing you to fill in termination information. It's only when you try to save it that you're told you can't have more than 2 terminations.I propose that either you should get an error immediately on clicking the Add Termination button, or that the button should be greyed out (with a tooltip saying that you cannot have more than 2 terminations on a P2P L2VPN)
Use case
User experience: not prompting the user to enter data which you know in advance will be rejected.
Database changes
None
External dependencies
None
The text was updated successfully, but these errors were encountered: