vlan import error with vlan groups with same name on different sites #831

Closed
opened 2025-12-29 16:26:09 +01:00 by adam · 0 comments
Owner

Originally created by @stoned on GitHub (Apr 5, 2017).

Issue type: bug report

Python version: 2.7.5
NetBox version: v1.9.4-r1

Create 2 sites:

  • site s1
  • site s2

Create 2 Vlan groups, with the same name, one on each site, like

  • vlan group vg1 on site s1
  • vlan group vg1 on site s2

Try to import a VLAN with a CSV input like the following:
s1,vg1,100,vlan100,,,Active,

And you should get the following error.

There was a problem with your request. This error has been logged and administrative staff have
been notified. Please return to the home page and try again.
If you are responsible for this installation, please consider
filing a bug report. Additional information is provided below:
<class 'ipam.models.MultipleObjectsReturned'>
get() returned more than one VLANGroup -- it returned 2!

Originally created by @stoned on GitHub (Apr 5, 2017). <!-- Please note: GitHub issues are to be used only for feature requests and bug reports. For installation assistance or general discussion, please join us on the mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please indicate "bug report" or "feature request" below. Be sure to search the existing set of issues (both open and closed) to see if a similar issue has already been raised. --> ### Issue type: bug report <!-- If filing a bug, please indicate the version of Python and NetBox you are running. (This is not necessary for feature requests.) --> **Python version:** 2.7.5 **NetBox version:** v1.9.4-r1 <!-- If filing a bug, please record the exact steps taken to reproduce the bug and any errors messages that are generated. If filing a feature request, please precisely describe the data model or workflow you would like to see implemented, and provide a use case. --> Create 2 sites: - site s1 - site s2 Create 2 Vlan groups, with the same name, one on each site, like - vlan group vg1 on site s1 - vlan group vg1 on site s2 Try to import a VLAN with a CSV input like the following: s1,vg1,100,vlan100,,,Active, And you should get the following error. > There was a problem with your request. This error has been logged and administrative staff have > been notified. Please return to the home page and try again. > If you are responsible for this installation, please consider > filing a bug report</a>. Additional information is provided below: > <class 'ipam.models.MultipleObjectsReturned'> > get() returned more than one VLANGroup -- it returned 2!
adam added the type: bug label 2025-12-29 16:26:09 +01:00
adam closed this issue 2025-12-29 16:26:09 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#831