You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnlen(programmedNCs), errors.Wrap(err, "failed to get nc version list from nmagent")
240
231
}
241
232
242
-
// Get IMDS NC versions for delegated NIC scenarios
243
-
imdsNCVersions, err:=service.getIMDSNCs(ctx)
233
+
// Get IMDS NC versions for delegated NIC scenarios. If any of the NMA API check calls, imds calls fails assume that nma build doesn't have the latest changes and create empty map
234
+
imdsNCVersions:=service.getIMDSNCs(ctx)
244
235
iferr!=nil {
245
236
// If any of the NMA API check calls, imds calls fails assume that nma build doesn't have the latest changes and create empty map
//nolint:staticcheck // SA1019: suppress deprecated logger.Printf usage. Todo: legacy logger usage is consistent in cns repo. Migrates when all logger usage is migrated
703
694
logger.Errorf("IMDS client is not available")
704
-
returnmake(map[string]string), nil
695
+
returnmake(map[string]string)
705
696
}
706
697
// Check NC version support
707
698
if!service.isNCDetailsAPIExists(ctx) {
708
699
//nolint:staticcheck // SA1019: suppress deprecated logger.Printf usage. Todo: legacy logger usage is consistent in cns repo. Migrates when all logger usage is migrated
709
700
logger.Errorf("IMDS does not support NC details API")
//nolint:staticcheck // SA1019: suppress deprecated logger.Printf usage. Todo: legacy logger usage is consistent in cns repo. Migrates when all logger usage is migrated
717
708
logger.Errorf("Failed to get network interfaces from IMDS: %v", err)
//nolint:staticcheck // SA1019: suppress deprecated logger.Debugf usage. Todo: legacy logger usage is consistent in cns repo. Migrates when all logger usage is migrated
734
726
logger.Debugf("failed to add PrefixOnNic keys to Windows registry: %w", err)
735
727
}
736
728
}
737
729
}
738
730
739
-
returnncs, nil
731
+
returnncs
740
732
}
741
733
742
-
// isPrefixonNicSwiftV2 checks if any NC in the container status should use SwiftV2 PrefixOnNic
743
-
// Uses the SwiftV2PrefixOnNic field which captures the condition: isSwiftV2 && nc.Type == VNETBlock
734
+
// Check whether NC is SwiftV2 NIC associated NC and prefix on nic is enabled
0 commit comments