Cannot create VLAN in VLAN group via API #2851

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

Originally created by @0x2a-se on GitHub (Sep 5, 2019).

Environment

  • Python version: 3.5.3
  • NetBox version: 2.6.3

Create VLAN via API in a specific group

Steps to Reproduce

  1. From /api/docs under /ipam/vlans/ ipam_vlans_create create VLAN with a group ID:
    {
    "group": 1,
    "vid": 2,
    "name": "string",
    "status": 1,
    "description": "string",
    "tags": [
    "string"
    ],
    "custom_fields": {}
    }

A VLAN should be created in VLAN group with ID 1

Gets HTML error outpus that says: VLANGroup: object is not iterable

When creating same VLAN without VLAN group it works

Originally created by @0x2a-se on GitHub (Sep 5, 2019). ### Environment * Python version: 3.5.3 * NetBox version: 2.6.3 Create VLAN via API in a specific group ### Steps to Reproduce 1. From <server-url>/api/docs under /ipam/vlans/ ipam_vlans_create create VLAN with a group ID: { "group": 1, "vid": 2, "name": "string", "status": 1, "description": "string", "tags": [ "string" ], "custom_fields": {} } <!-- What did you expect to happen? --> A VLAN should be created in VLAN group with ID 1 <!-- What happened instead? --> Gets HTML error outpus that says: VLANGroup: object is not iterable When creating same VLAN without VLAN group it works
adam closed this issue 2025-12-29 18:22:48 +01:00
Author
Owner

@DanSheps commented on GitHub (Sep 6, 2019):

Thank you for your interest in NetBox. GitHub issues are intended for reporting reproducible bugs and requesting features, and must be submitted using one of the templates provided here. For general discussion, questions, or assistance with installation issues, please post to our mailing list instead.

@DanSheps commented on GitHub (Sep 6, 2019): Thank you for your interest in NetBox. GitHub issues are intended for reporting reproducible bugs and requesting features, and must be submitted using one of the templates provided [here](https://github.com/digitalocean/netbox/issues/new/choose). For general discussion, questions, or assistance with installation issues, please post to our [mailing list](https://groups.google.com/forum/#!forum/netbox-discuss) instead.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2851