Skip to content

Commit f19fd62

Browse files
committed
added omments
1 parent 4abb1c9 commit f19fd62

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

npm/pkg/dataplane/dataplane_windows.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,16 @@ func (dp *DataPlane) initializeDataPlane() error {
6363
filterMap := map[string]uint16{"State": hcnEndpointStateAttachedSharing}
6464
filter, err := json.Marshal(filterMap)
6565
if err != nil {
66-
return errors.Wrap(err, "failed to marshal endpoint filter map")
66+
return errors.Wrap(err, "failed to marshal endpoint filter map for attachedsharing state")
6767
}
6868
dp.endpointQuery.query.Filter = string(filter)
6969

70+
// Filter out any endpoints that are not in "Attached" State. All running Windows L1VH pods with networking must be in this state.
7071
if dp.EnableNPMLite {
7172
filterMapL1VH := map[string]uint16{"State": hcnEndpointStateAttached}
7273
filterL1VH, err := json.Marshal(filterMapL1VH)
7374
if err != nil {
74-
return errors.Wrap(err, "failed to marshal endpoint filter map")
75+
return errors.Wrap(err, "failed to marshal endpoint filter map for attched state on L1VH Node")
7576
}
7677
dp.endpointQueryL1VH.query.Filter = string(filterL1VH)
7778
}

0 commit comments

Comments
 (0)