fmaximus commented on a change in pull request #2672: CLOUDSTACK-10377: Fix 
Network restart for Nuage
URL: https://github.com/apache/cloudstack/pull/2672#discussion_r191500725
 
 

 ##########
 File path: 
plugins/network-elements/nuage-vsp/src/com/cloud/network/guru/NuageVspGuestNetworkGuru.java
 ##########
 @@ -723,6 +739,32 @@ public void deallocate(Network network, NicProfile nic, 
VirtualMachineProfile vm
             } else {
                 super.deallocate(network, nic, vm);
             }
+
+            if (virtualMachine.getType() == VirtualMachine.Type.DomainRouter) {
 
 Review comment:
   Do we really want to go into creating methods for checking enum values?
   I'm not in favor of creating that kind of method in this class, 
   so it should go either in VirtualMachine or in VirtualMachine.Type

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to