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

Allow range block in aci_vlan_pool (DCNE-113) #173

Open
vfiftyfive opened this issue Dec 11, 2020 · 4 comments
Open

Allow range block in aci_vlan_pool (DCNE-113) #173

vfiftyfive opened this issue Dec 11, 2020 · 4 comments
Labels
enhancement jira-sync Sync this issue to Jira

Comments

@vfiftyfive
Copy link

Add support for block definition of ranges in vlan pool and remove requirement for "vlan-" prefix before vlan number:

resource "aci_vlan_pool" "my_pool" {
  name = "my_vlan_pool"
  alloc_mode = "dynamic"
  range {
    from  = "100"
    to = "200"
}
  range {
    from  = "1500"
    to = "2000"
}
@lhercot
Copy link
Member

lhercot commented Jan 12, 2021

I think you can use aci_ranges to achieve the same. Do we still need to add this capability?

@trenzy
Copy link

trenzy commented Jan 12, 2021

You can use aci_ranges for this, See below. It still requires "vlan-xyz" for the the definition of the start and ending ranges.

Add VLAN Ranges to VLAN pool with static allocation

resource "aci_ranges" "vlan_pool" {
description = "Created with Terraform v0.13.4"
vlan_pool_dn = aci_vlan_pool.tf-vlan-pool.id
from = "vlan-650"
to = "vlan-659"
alloc_mode = "static"
role = "external"
}

@vfiftyfive
Copy link
Author

vfiftyfive commented Jan 13, 2021

I don't think it achieves the same thing. A block allows you multiple ranges. For aci_ranges, you'd have to create multiple resources, which is what the block usage is trying to avoid.

Nic

@trenzy
Copy link

trenzy commented Jan 13, 2021

Would this capability be better in aci_ranges instead of aci_vlan_pool, since this is where we define the vlan ranges we want?

Then again, I'm not sure why we have separate resources for this.

@samiib samiib added the jira-sync Sync this issue to Jira label Aug 14, 2024
@github-actions github-actions bot changed the title Allow range block in aci_vlan_pool Allow range block in aci_vlan_pool (DCNE-113) Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement jira-sync Sync this issue to Jira
Projects
None yet
Development

No branches or pull requests

4 participants