shwstppr commented on a change in pull request #5181:
URL: https://github.com/apache/cloudstack/pull/5181#discussion_r709967287



##########
File path: server/src/main/java/com/cloud/hypervisor/HypervisorGuruBase.java
##########
@@ -97,6 +98,25 @@
     public static ConfigKey<Boolean> 
VmMinCpuSpeedEqualsCpuSpeedDividedByCpuOverprovisioningFactor = new 
ConfigKey<Boolean>("Advanced", Boolean.class, 
"vm.min.cpu.speed.equals.cpu.speed.divided.by.cpu.overprovisioning.factor", 
"true",
             "If we set this to 'true', a minimum CPU speed (cpu speed/ 
cpu.overprovisioning.factor) will be set on the VM, independent of using a 
scalable service offering or not.", true, ConfigKey.Scope.Cluster);
 
+    private Map<NetworkOffering.Detail, String> getNicDetails(Network network) 
{
+        if (network == null) {
+            s_logger.debug("Unable to get NIC details as the network is null");
+            return null;
+        }
+        Map<NetworkOffering.Detail, String> details = 
networkOfferingDetailsDao.getNtwkOffDetails(network.getNetworkOfferingId());
+        if (details != null) {
+            details.putIfAbsent(NetworkOffering.Detail.PromiscuousMode, 
NetworkOrchestrationService.PromiscuousMode.value().toString());
+            details.putIfAbsent(NetworkOffering.Detail.MacAddressChanges, 
NetworkOrchestrationService.MacAddressChanges.value().toString());
+            details.putIfAbsent(NetworkOffering.Detail.ForgedTransmits, 
NetworkOrchestrationService.ForgedTransmits.value().toString());
+            details.putIfAbsent(NetworkOffering.Detail.MacLearning, 
NetworkOrchestrationService.MacLearning.value().toString());

Review comment:
       @sureshanaparti No, I think they are set for all NICs as it was done 
before. See ln 220 in the old code of the diff




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to