Git Product home page Git Product logo

Comments (18)

colemickens avatar colemickens commented on May 23, 2024 1

Summary:

Thanks to @DeepakRajendranMsft for providing this information.

from azure-rest-api-specs.

devigned avatar devigned commented on May 23, 2024

@deepakswifty and @dihan0604 please respond with a fix or an explanation which could be used to make the correction to the spec.

from azure-rest-api-specs.

colemickens avatar colemickens commented on May 23, 2024

Ping?

from azure-rest-api-specs.

devigned avatar devigned commented on May 23, 2024

@markjbrown can you or someone else from networking comment on this?

from azure-rest-api-specs.

dihan0604 avatar dihan0604 commented on May 23, 2024

@deepakswifty, Hi Deepak, could you take a look? This is not express route cmdlets,I am not familiar with it.

from azure-rest-api-specs.

colemickens avatar colemickens commented on May 23, 2024

Ping?

from azure-rest-api-specs.

DeepakRajendranMsft avatar DeepakRajendranMsft commented on May 23, 2024

Hi @colemickens, sorry for the late reply.

we have just added the primary field for ipconfguration. It will be under a feature flag.

I would say the algo should be that (for nic and ipconfiguration), if the primary flag is not set, treat it as primary. If there are multiple nics and ipconfiguration then the primary flags for all nics and ipconfigurations will be set

from azure-rest-api-specs.

colemickens avatar colemickens commented on May 23, 2024

I would say the algo should be that (for nic and ipconfiguration), if the primary flag is not set, treat it as primary. If there are multiple nics and ipconfiguration then the primary flags for all nics and ipconfigurations will be set

Makes sense. Will this /always/ be behind a feature flag? How are feature-flagged portions of the API handled when it comes to the Swagger spec?

Is there anyone from the CRP side we can talk to so that they will add the same flag is supposed to be there for the NIC in the VM Instance response? Or is that added now as well?

from azure-rest-api-specs.

DeepakRajendranMsft avatar DeepakRajendranMsft commented on May 23, 2024

Makes sense. Will this /always/ be behind a feature flag?

  • Multi-NIC feature is already public. Multi-CA/ Multi-Ipconfigurations per NIC is still behind a feature flag. Feature flags are not something we would like to keep forever, they should be removed once the feature goes public. Feature flags are subscription based meaning that we have to manually enable each subscription based on the request.

How are feature-flagged portions of the API handled when it comes to the Swagger spec?

  • we dont have an explicit way of handling this right now, (@david, is there something we can do here?)

Is there anyone from the CRP side we can talk to so that they will add the same flag is supposed to be there for the NIC in the VM Instance response? Or is that added now as well?

  • The flag from CRP side should be the users input. So if the user had specified the primary flags you should be seeing them. If it is a single nuc scenario then the primary flag is optional, so in this case you may or may not see the primary flag

from azure-rest-api-specs.

colemickens avatar colemickens commented on May 23, 2024

Thank you for the explanation @DeepakRajendranMsft.

This definitely gives me enough information to write a conformant implementation. That having been said, I would suggest that always returning the primary field in the single-nic or single-ipconfig scenario is preferred.

As is, I have to write more heuristic code-- (is there more than one nic, okay, then just take that, if not loop through the nics and look at the primary flag. then fetch that nic and check if there are more than one ipconfig, if not, just use the first one, if so, look through all of them and examine primary flag).

I can write the code much more generically if I just loop through them regardless of how many there are, looking for the primary flag. More importantly, I'd argue that that is what the Swagger spec and MSDN REST documentation encourages people to do. I don't think the behavior you've described is documented anywhere... even for the GA feature of multi-NIC.

from azure-rest-api-specs.

DeepakRajendranMsft avatar DeepakRajendranMsft commented on May 23, 2024

@colemickens thanks for feedback.

we always want to maintain the customers input (even on the output). thats why its optional.

@markjbrown for documenation

from azure-rest-api-specs.

devigned avatar devigned commented on May 23, 2024

@DeepakRajendranMsft wouldn't a feature flag be part of a preview api-version? I wouldn't imagine they would be part of a non-preview api-version.

Beyond that, I think the only other thing we can do is to include a comment in the description of the operations or on the model calling out the fact that the feature is there, but not available in all subscriptions. Perhaps, also including some information on how to be an early adopter of the feature.

from azure-rest-api-specs.

tjprescott avatar tjprescott commented on May 23, 2024

Is there an estimate for when the ip-config primary flag will no longer be behind a feature flag?

from azure-rest-api-specs.

colemickens avatar colemickens commented on May 23, 2024

@DeepakRajendranMsft @devigned Can we re-sync on the new field that was exposed from NRP?

In particular, has it been added to any published Swagger specs? If not, when will it be? And when will it no longer be behind a "feature flag"?

from azure-rest-api-specs.

colemickens avatar colemickens commented on May 23, 2024

Ping @DeepakRajendranMsft , @devigned for the above questions. Is this stuff actually consistent between the services are returning, documented to return, and what is actually in the Swagger spec? Both the CRP field and the NRP field?

from azure-rest-api-specs.

devigned avatar devigned commented on May 23, 2024

@colemickens thank you for adding the summary of the discussion!

from azure-rest-api-specs.

pearcec avatar pearcec commented on May 23, 2024

So I am looking to fix hashicorp/terraform#6514 Reading through the code I justed realize there are two Primary flags. It is not clear to me. Can I choose to set either? Give the choice I rather put it on the interface and not the ip config.

from azure-rest-api-specs.

pearcec avatar pearcec commented on May 23, 2024

Looks like I am reading this wrong. We need to set the primary doing the CRP.

from azure-rest-api-specs.

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.