Skip to content

[feature req] Vlan data improvements #786

@hp197

Description

@hp197

Hi,

The site_id field in vlans is noted deprecated by new versions of netbox:

Image

This gives me a problem, as I like to receive all vlans of a site for provisioning of devices.
But since there is no netbox_vlan_groupS datasource, I cannot traverse anymore from site_id to a list of vlans once this change occurs.

Solution to this would be to add a netbox_vlan_groups datasource, much like the netbox_vlans, who returns a list of matching groups.
Secondly (while at the vlan code), netbox_vlan_group (single) datasource would really benefit from a id filter input, because the netbox_vlans returns the group_id (and not the name). So currently there is no way to work back the relations.

output of netbox_vlans:

[{
  description = "IPMI/DRAC/ILO Management Interfaces"
  group_id    = 6
  name        = "ipmi"
  role        = 6
  site        = 1
  status      = "active"
  tag_ids     = [
    11,
  ]
  tenant      = 1
  vid         = 1104
}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions