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

Position attribute in Interface Map may not be correct with breakout interfaces #924

Open
chrismarget-j opened this issue Oct 17, 2024 · 0 comments

Comments

@chrismarget-j
Copy link
Collaborator

https://github.com/Juniper/terraform-provider-apstra/blob/ffca27533382aff6c48229444fb61f560e0601f4/apstra/resource_interface_map.go#L548C1-L549C1

I think we're using the physical port ID here, but should be using a value which represents the logical device port.

Example weirdness:

resource "apstra_interface_map" "100x128" {
  name              = "qfx5220-32cd--128x100"
  device_profile_id = "Juniper_QFX5220-32CD_Junos"
  logical_device_id = "AOS-128x100-1"
  interfaces = [for i in range(128) :
    {
      logical_device_port     = format("1/%d", i + 1)
      physical_interface_name = format("et-0/0/%d:%d", floor(i / 4), i % 4)
      transformation_id       = 2
    }
  ]
}

I think this issue manifests itself as a cosmetic flaw in the web UI.

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

No branches or pull requests

1 participant