When bulk adding ips via a prefix, VRF should default to that of the prefix #1459

Closed
opened 2025-12-29 16:32:18 +01:00 by adam · 2 comments
Owner

Originally created by @explody on GitHub (Dec 16, 2017).

Issue type

[ ] Feature request
[ X ] Bug report
[ ] Documentation

Environment

  • Python version: 3.5.2
  • NetBox version: 2.2.8-dev (HEAD)

Description

When one navigates to a prefix and clicks "Add an IP address", the single-ip form defaults to setting the VRF to the current VRF of the prefix. However, if one switches to the 'Bulk Add' tab, the VRF selection resets to "Global".

Instead, it should default to the VRF of the prefix, as with the single-IP form.

Just follow the steps described to reproduce (confirmed on 2.2.7-dev - 2.2.8-dev)

screen shot 2017-12-15 at 8 10 44 pm
Originally created by @explody on GitHub (Dec 16, 2017). <!-- Before opening a new issue, please search through the existing issues to see if your topic has already been addressed. Note that you may need to remove the "is:open" filter from the search bar to include closed issues. Check the appropriate type for your issue below by placing an x between the brackets. For assistance with installation issues, or for any other issues other than those listed below, please raise your topic for discussion on our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please note that issues which do not fall under any of the below categories will be closed. Due to an excessive backlog of feature requests, we are not currently accepting any proposals which extend NetBox's feature scope. Do not prepend any sort of tag to your issue's title. An administrator will review your issue and assign labels as appropriate. ---> ### Issue type [ ] Feature request <!-- An enhancement of existing functionality --> [ X ] Bug report <!-- Unexpected or erroneous behavior --> [ ] Documentation <!-- A modification to the documentation --> <!-- Please describe the environment in which you are running NetBox. (Be sure to verify that you are running the latest stable release of NetBox before submitting a bug report.) If you are submitting a bug report and have made any changes to the code base, please first validate that your bug can be recreated while running an official release. --> ### Environment * Python version: 3.5.2 * NetBox version: 2.2.8-dev (HEAD) ### Description When one navigates to a prefix and clicks "Add an IP address", the single-ip form defaults to setting the VRF to the current VRF of the prefix. However, if one switches to the 'Bulk Add' tab, the VRF selection resets to "Global". Instead, it should default to the VRF of the prefix, as with the single-IP form. Just follow the steps described to reproduce (confirmed on 2.2.7-dev - 2.2.8-dev) <img width="860" alt="screen shot 2017-12-15 at 8 10 44 pm" src="https://user-images.githubusercontent.com/80896/34065878-d03d409e-e1d4-11e7-9f8a-734f91c13bba.png">
adam added the type: bug label 2025-12-29 16:32:18 +01:00
adam closed this issue 2025-12-29 16:32:18 +01:00
Author
Owner

@explody commented on GitHub (Dec 16, 2017):

Minor correction, 'Global' may be a VRF we added, I don't recall. But, just checked this on a different vanilla instance and it defaulted to '---------'. In both cases, it's the default VRF option and not the one specified in the query args.

@explody commented on GitHub (Dec 16, 2017): Minor correction, 'Global' may be a VRF we added, I don't recall. But, just checked this on a different vanilla instance and it defaulted to '---------'. In both cases, it's the default VRF option and not the one specified in the query args.
Author
Owner

@jeremystretch commented on GitHub (Dec 20, 2017):

Fixed in #1780

@jeremystretch commented on GitHub (Dec 20, 2017): Fixed in #1780
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1459