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
//nolint:staticcheck // SA1019: suppress deprecated logger.Printf usage. Todo: legacy logger usage is consistent in cns repo. Migrates when all logger usage is migrated
723
-
logger.Errorf("NMAgent does not support SwiftV2 API or 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
737
-
logger.Errorf("Failed to get network interfaces from IMDS: %v", err)
738
-
returnmake(map[string]string), nil
739
-
}
740
-
741
-
// Build ncs map from the network interfaces
742
-
ncs:=make(map[string]string)
743
-
for_, iface:=rangenetworkInterfaces {
744
-
// IMDS returns interfaceCompartmentID, as nc id guid has different context on nma. We map these to NC ID
745
-
ncID:=iface.InterfaceCompartmentID
746
-
747
-
ifncID!="" {
748
-
ncs[ncID] =PrefixOnNicNCVersion// for prefix on nic version scenario nc version is 1
749
-
}
750
-
}
751
-
752
-
returnncs, nil
720
+
// Check NMAgent API support for SwiftV2, if it fails return empty map assuming support might not be available in that nma build
//nolint:staticcheck // SA1019: suppress deprecated logger.Printf usage. Todo: legacy logger usage is consistent in cns repo. Migrates when all logger usage is migrated
723
+
logger.Errorf("NMAgent does not support SwiftV2 API or 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
737
+
logger.Errorf("Failed to get network interfaces from IMDS: %v", err)
738
+
returnmake(map[string]string), nil
739
+
}
740
+
741
+
// Build ncs map from the network interfaces
742
+
ncs:=make(map[string]string)
743
+
for_, iface:=rangenetworkInterfaces {
744
+
// IMDS returns interfaceCompartmentID, as nc id guid has different context on nma. We map these to NC ID
745
+
ncID:=iface.InterfaceCompartmentID
746
+
747
+
ifncID!="" {
748
+
ncs[ncID] =PrefixOnNicNCVersion// for prefix on nic version scenario nc version is 1
0 commit comments