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

nsxt route_aggregation on a separate resource #819

Open
frederic-urban opened this issue Nov 30, 2022 · 2 comments
Open

nsxt route_aggregation on a separate resource #819

frederic-urban opened this issue Nov 30, 2022 · 2 comments
Assignees
Labels
enhancement Enhancement new-resource Resource
Milestone

Comments

@frederic-urban
Copy link

Is your feature request related to a problem? Please describe.

We would like to deploy VIP networks on our NSX Load Balancers (hosted on a T1). For some usage, we need to have some /32 IPs available on the T1 so we plan to broadcast a /29 using route aggregation on the T0 for physical network to know that the VIP network is behind our edge.

Each VIP Network could be associated to dedicated T1 LB and each T1LB comes with a dedicated terraform deployement for scalability.

Since the route aggregation configuration is in the t0 ressource, we are not able to scale as wanted.

Describe the solution you'd like

Is it's possible to create a "route_aggregation" ressource linked to t0 bgp configuration which create a entry held in the state of the deployement.

Then when a deployement is destroyed, the aggregation leave NSX aswell but all others deployement remain operationnal.

Describe alternatives you've considered

We could handle the route aggregation in another state and link the new Tier1 to the Tier0 using a data, but it needs to manipulate 2 separated terraform states

Additional context

We are in NSX 3.1 moving soon to 3.2 but i don't think this is usefull to solve the problem described above

@frederic-urban frederic-urban added the enhancement Enhancement label Nov 30, 2022
@annakhm annakhm added the new-resource Resource label Apr 6, 2023
@salv-orlando salv-orlando added this to the v3.4.2 milestone Nov 24, 2023
@salv-orlando salv-orlando changed the title nsxt route_aggregation on a separate ressource nsxt route_aggregation on a separate resource Feb 26, 2024
@salv-orlando salv-orlando modified the milestones: v3.6.0, v3.7.0 Apr 9, 2024
@salv-orlando salv-orlando assigned annakhm and unassigned ksamoray Sep 7, 2024
@ksamoray ksamoray modified the milestones: v3.7.0, v3.8.0 Oct 27, 2024
@annakhm
Copy link
Collaborator

annakhm commented Dec 5, 2024

Unfortunately, route aggregations under bgp config are not managed as objects under a separate API, but rather as a list under BGP config object. Exposing those types of structures as separate resources in terraform in not best practice, as it causes concurrency issues (since the terraform resources that are created in parallel de-facto end up being part of the same list in single BGP object on NSX).

Have you considered using dynamic block for route aggregations, as part of nsxt_policy_bgp_config resource?

@salv-orlando salv-orlando modified the milestones: v3.8.0, v3.9.0 Dec 12, 2024
@salv-orlando
Copy link
Member

Moving to 3.9.0 as we are close to the 3.8.0 release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement new-resource Resource
Projects
None yet
Development

No branches or pull requests

4 participants