Code Monkey home page Code Monkey logo

Comments (4)

gmoulard avatar gmoulard commented on September 17, 2024 1

Indeed my import works with an nsxt_policy_fixed_segment.
Many tanke for this info @salv-orlando

What are the differences between nsxt_policy_fixed_segment and nsxt_policy_segment?

from terraform-provider-nsxt.

salv-orlando avatar salv-orlando commented on September 17, 2024

Hello,

The search aggregate API query you reported does not specify the resource_type.
I might be wrong but I think the segment created by HCX are tier-1 segments.

Which resource or data source did you use?
Did you try using nsxt_policy_fixed_segment as well?

@annakhm moving this into your queue.

from terraform-provider-nsxt.

gmoulard avatar gmoulard commented on September 17, 2024

Hello,

I use nsxt_policy_segment in my case. I don't test nsxt_policy_fixed_segment.

My Code;
``resource "nsxt_policy_segment" "segments" {
lifecycle {
ignore_changes = [security_profile]
}

for_each = local.segments
display_name = each.key
description = each.value.description
connectivity_path = "/infra/tier-1s/cgw"
transport_zone_path = data.nsxt_policy_transport_zone.transport_zone.path

tag {
scope = each.value.env
tag = "env"
}
tag {
scope = each.value.app
tag = "app"
}
subnet {
cidr = each.value.subnet
}
advanced_config {
connectivity = "OFF"
}
}``

from terraform-provider-nsxt.

annakhm avatar annakhm commented on September 17, 2024

Hi @gmoulard, segment and fixed segment are different API endpoints in NSX, fixed segment is always attached to a gateway, while regular segment can be detached. Other than that, those segments are very similar.

from terraform-provider-nsxt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.