Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for VLAN 'status' filter parameter #622

Conversation

Piethan
Copy link
Contributor

@Piethan Piethan commented Jul 24, 2024

Add status to vlan filter option

I would like to filter

data "netbox_vlans" "vlans" {
  filter {
    name  = "status"
    value = "active"
  }
}
Changes to Outputs:
  + vlans = [
      + {
          + description = "Demo Test Group"
          + group_id    = 0
          + name        = "DEMO_TEST"
          + role        = 0
          + site        = 1
          + status      = "active"
          + tenant      = 0
          + vid         = 2
        },
    ]

Enhanced the `data_source_netbox_vlans.go` to include a 'status' filter parameter for VLAN resources. This allows users to filter VLAN data based on its status, improving data retrieval flexibility.
@fbreckle fbreckle merged commit 7a8cde5 into e-breuninger:master Jul 30, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants