Cannot create Vlan-Group with site_id, also create vlan in vlan-group (with group option) #3601

Closed
opened 2025-12-29 18:30:05 +01:00 by adam · 1 comment
Owner

Originally created by @Vadims06 on GitHub (Apr 23, 2020).

Environment

  • Python version: 3.6.8
  • NetBox version: 2.8.0

Attempt to create vlan-group with site attribute using POST method.
Attempt to create vlan inside vlan-group using group attribute in POST method.

Steps to Reproduce

  1. Make POST request with 'site' attribute for creating vlan-group with data = {'name': 'vlan_group_name', 'slug': 'vlan_group_name', 'site': site_id_of any site}.
  2. Make POST request to create vlan inside vlan-group using group attribute, e.x. data = {'vid': 1, "name": 'default, "site": site_id_of any site, 'group': vlan_group_id}

Expected Behavior

  1. Creation of vlan-group in site
  2. Creation a vlan inside vlan-group

Observed Behavior

I get the following error
'UniqueTogetherValidator' object has no attribute &#x27 them I make both POSTs

Originally created by @Vadims06 on GitHub (Apr 23, 2020). ### Environment * Python version: 3.6.8 * NetBox version: 2.8.0 Attempt to create vlan-group with **site** attribute using POST method. Attempt to create vlan inside vlan-group using **group** attribute in POST method. ### Steps to Reproduce 1. Make POST request with '**site**' attribute for creating vlan-group with data = {'name': 'vlan_group_name', 'slug': 'vlan_group_name', 'site': site_id_of any site}. 2. Make POST request to create vlan inside vlan-group using **group** attribute, e.x. data = {'vid': 1, "name": 'default, "site": site_id_of any site, 'group': vlan_group_id} ### Expected Behavior 1. Creation of vlan-group in site 2. Creation a vlan inside vlan-group ### Observed Behavior I get the following error '**UniqueTogetherValidator**' **object has no attribute** &#x27 them I make both POSTs
adam added the status: duplicate label 2025-12-29 18:30:05 +01:00
adam closed this issue 2025-12-29 18:30:05 +01:00
Author
Owner

@DouglasHeriot commented on GitHub (Apr 24, 2020):

This is a duplicate of #4496, just fixed in the recent v2.8.1 release

@DouglasHeriot commented on GitHub (Apr 24, 2020): This is a duplicate of #4496, just fixed in the recent v2.8.1 release
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3601