Spaceman1984 commented on issue #4246:
URL: https://github.com/apache/cloudstack/issues/4246#issuecomment-672777391


   > But after something (maybe vcenter restart or esxi host upgrade or etc, we 
are not sure the exact trigger), it changed like
   
   @echoidcf I need to know how to get it into this state^^ (restarting the 
host didn't change the order).
   I have found the piece of code you mentioned inside 
prepareNetworkElementCommand() which is called when a VR is started.
   I'm not sure how to get plugPublicNic() called, is there a specific action 
you take to have addVif be set to true? 
   
   ```
   if (addVif) {
       plugPublicNic(vmMo, vlanId, ip);
       ...
   }
   ```
   
   From the code it seems as if plugPublicNic() is called when there are no 
public networks on vsphere.


----------------------------------------------------------------
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.

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


Reply via email to