Add Bulk IP Addresses - VRF list empty #633

Closed
opened 2025-12-29 16:24:05 +01:00 by adam · 3 comments
Owner

Originally created by @Chris-ZA on GitHub (Jan 17, 2017).

Hi,

I am getting an empty VRF drop down list when using the form to add bulk IP addresses.

The drop down list is populated fine when using the individual IP address form. The list is only empty with the bulk form.

I'm running 1.8.1.

Thanks!

Originally created by @Chris-ZA on GitHub (Jan 17, 2017). Hi, I am getting an empty VRF drop down list when using the form to add **bulk** IP addresses. The drop down list is populated fine when using the individual IP address form. The list is only empty with the bulk form. I'm running 1.8.1. Thanks!
adam closed this issue 2025-12-29 16:24:06 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jan 17, 2017):

I'm not able to replicate this. The form field is about as simple as it can be, so I'm not sure what could be going wrong:

vrf = forms.ModelChoiceField(queryset=VRF.objects.all(), required=False, label='VRF')
@jeremystretch commented on GitHub (Jan 17, 2017): I'm not able to replicate this. The form field is about as simple as it can be, so I'm not sure what could be going wrong: ``` vrf = forms.ModelChoiceField(queryset=VRF.objects.all(), required=False, label='VRF') ```
Author
Owner

@Chris-ZA commented on GitHub (Jan 17, 2017):

I figured out that this only happens when you don't have any VRF's defined. I added a VRF and the list populates. If you don't have any VRF's defined then the list doesn't get populated with the "Global" VRF but the data does get saved when the form submits.

Hope this helps?

@Chris-ZA commented on GitHub (Jan 17, 2017): I figured out that this only happens when you don't have any VRF's defined. I added a VRF and the list populates. If you don't have any VRF's defined then the list doesn't get populated with the "Global" VRF but the data does get saved when the form submits. Hope this helps?
Author
Owner

@jeremystretch commented on GitHub (Jan 17, 2017):

I've corrected the "none" label to read "Global" now (c264281), as it does for the single IP address form.

@jeremystretch commented on GitHub (Jan 17, 2017): I've corrected the "none" label to read "Global" now (c264281), as it does for the single IP address form.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#633