Giter Club home page Giter Club logo

Comments (5)

ksamoray avatar ksamoray commented on August 12, 2024

Hi,
Seems like we've added the support for this attribute only from v4.2.0 and above in both create and update.

I'm not sure why it does work with update but not on create - I expect this to be consistent (either work or not work for both transactions).
@wsquan171 might be able to elaborate further.

BTW @adarobin which version of NSX is in use?

from terraform-provider-nsxt.

adarobin avatar adarobin commented on August 12, 2024

Hi @ksamoray, this is my non-prod environment which is currently on 4.1.2.3

Just looking at the documentation, it was not apparent that this was for 4.2.x and newer only. It does seem to work aside from this issue.

from terraform-provider-nsxt.

wsquan171 avatar wsquan171 commented on August 12, 2024

Most likely this is due to setting the tf state visibility attr from the value read back from NSX after resource creation regardless of NSX version: https://github.com/vmware/terraform-provider-nsxt/blob/master/nsxt/resource_nsxt_policy_ip_block.go#L95
Since the value is left out in the create call, tf plan will find a diff on this field for update.

from terraform-provider-nsxt.

ksamoray avatar ksamoray commented on August 12, 2024

Thanks @wsquan171 - so this attribute won't be applied also during update in that case.

from terraform-provider-nsxt.

wsquan171 avatar wsquan171 commented on August 12, 2024

@ksamoray Yes. It won't be sent to NSX on either create or update. I think aside from ip block we have other resources sliently leave out params if NSX version is not met. For all the cases it will show up as diff after apply. Should we add version checks on read and avoid setting nil values to tf state, and only maybe log a warning that some fields are ignored?

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.