mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-3425 Ignore network interfaces without a uuid when passing them on as extra configs to ESX for nicira NVP controller.
Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
This commit is contained in:
parent
8065a5570d
commit
6e85ae219b
|
|
@ -2826,10 +2826,12 @@ public class VmwareResource implements StoragePoolResource, ServerResource, Vmwa
|
|||
*/
|
||||
int nicNum = 0;
|
||||
for (NicTO nicTo : sortNicsByDeviceId(nics)) {
|
||||
newVal = new OptionValue();
|
||||
newVal.setKey("nvp.iface-id." + nicNum);
|
||||
newVal.setValue(nicTo.getUuid());
|
||||
extraOptions.add(newVal);
|
||||
if (nicTo.getUuid() != null) {
|
||||
newVal = new OptionValue();
|
||||
newVal.setKey("nvp.iface-id." + nicNum);
|
||||
newVal.setValue(nicTo.getUuid());
|
||||
extraOptions.add(newVal);
|
||||
}
|
||||
nicNum++;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue