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

Include body for unpublishNC calls to support AZR #1826

Merged
merged 10 commits into from
Mar 1, 2023

Conversation

smittal22
Copy link
Contributor

@smittal22 smittal22 commented Feb 28, 2023

Reason for Change:

To enable AZR support, we need to pass two extra params azID (uint) and enableAZR (boolean) as part of body to NMAgent. Since we are not passing body to NMAgent as of now, this PR adds a body to the request just like we have for publish NC.

Whenever NC has enableAZR = true in NC config, we will pass body like: {"azID":<value>,"enableAZR":true}
For already existing NC (or if NC has enableAZR = false in NC config), we will pass body like: {"azID": 0,"enableAZR":false}

Issue Fixed:

https://msazure.visualstudio.com/DefaultCollection/One/_workitems/edit/16187805

Requirements:

Notes:

@smittal22 smittal22 requested a review from a team as a code owner February 28, 2023 20:19
@smittal22 smittal22 requested review from rsagasthya and removed request for a team February 28, 2023 20:19
@smittal22 smittal22 changed the title Include body for unpublishNC calls to support AZR [WIP] Include body for unpublishNC calls to support AZR Feb 28, 2023
@smittal22 smittal22 changed the title [WIP] Include body for unpublishNC calls to support AZR Include body for unpublishNC calls to support AZR Mar 1, 2023
Copy link
Contributor

@ramiro-gamarra ramiro-gamarra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change needs to be backwards compatible with DNC.

cns/wireserver/proxy.go Outdated Show resolved Hide resolved
@smittal22 smittal22 merged commit 2a9b132 into Azure:master Mar 1, 2023
@smittal22 smittal22 mentioned this pull request Mar 6, 2023
3 tasks
rjdenney pushed a commit that referenced this pull request Mar 13, 2023
* initial delete NC changes to include body

* initial delete NC changes to include body

* lint error

* initial delete NC changes to include body

* initial delete NC changes to include body

* lint error

* test change

* test change

* add comment
@smittal22 smittal22 added the AZR AZR related PR label Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AZR AZR related PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants