Skip to content

Conversation

@rejain456
Copy link
Contributor

Reason for Change:

Currently, for non-l1vh window nodes, we query for hns endpoints with state 3 (attachedSharing). However, for L1VH nodes, the hns endpoints have state 2 (attached). NPM Lite will use both non-l1vh window nodes as well as L1VH nodes.

Issue Fixed:

This pr aims to query for both states, state 2 for npm and npm lite and state 3 if npm lite is enabled.

Requirements:

Notes:

@rejain456 rejain456 requested a review from a team as a code owner October 24, 2024 22:42
@rejain456 rejain456 requested a review from vakalapa October 24, 2024 22:42
@rejain456
Copy link
Contributor Author

/azp run Azure Container Networking PR

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@huntergregory huntergregory left a comment

Choose a reason for hiding this comment

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

couple minor suggestions

@rejain456
Copy link
Contributor Author

/azp run Azure Container Networking PR

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rejain456
Copy link
Contributor Author

/azp run Azure Container Networking PR

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rejain456 rejain456 added this pull request to the merge queue Nov 5, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Nov 5, 2024
@rejain456 rejain456 added this pull request to the merge queue Nov 5, 2024
Merged via the queue into master with commit b7190c8 Nov 6, 2024
43 checks passed
@rejain456 rejain456 deleted the jainriya/hnsEndpointFixL1VH branch November 6, 2024 01:37
sivakami-projects pushed a commit that referenced this pull request Oct 23, 2025
* Added logic to make 2 hns calls for 2 different endpoint states

* added querying to l1vh hns only if npm lite is enabled

* added logging line for debugging

* updated config

* removed logging lines

* fixing go lint err

* refactored based on pr comments

* replaced with errors.Wrap and fixed a logging statement

* added if condition with logic

* changed errl1vh to err

* added omments

* added logging lines for debugging

* added npm lite enabled log debugging

* spacing

* syntax

* added logs for debugging

* optimizing api load

* added function to remove common endpoints

* added logging for debugging

* removed npm lite check

* removed all the debugging comments

* added extra unit test cases

* added additional unit tests

* removed protobuf code

* fixed comment

* fixed a spelling error

* resolved pr comments

* updated a comment

* revised comment

* resolved further pr comments

* changed back to for loop from range
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants