Skip to content

Commit c2eb871

Browse files
weizhouapachedhslove
authored andcommitted
NSX: add back removed code for NSX (apache#9435)
This code snippet has been removed in the merge forward of PR apache#9240 in commit 90fe1d5
1 parent 1ee870b commit c2eb871

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

engine/orchestration/src/main/java/org/apache/cloudstack/engine/orchestration/NetworkOrchestrator.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,6 +1074,12 @@ private NicVO checkForRaceAndAllocateNic(final NicProfile requested, final Netwo
10741074
return null;
10751075
}
10761076

1077+
if (isNicAllocatedForNsxPublicNetworkOnVR(network, profile, vm)) {
1078+
String guruName = "NsxPublicNetworkGuru";
1079+
NetworkGuru nsxGuru = AdapterBase.getAdapterByName(networkGurus, guruName);
1080+
nsxGuru.allocate(network, profile, vm);
1081+
}
1082+
10771083
if (isDefaultNic != null) {
10781084
profile.setDefaultNic(isDefaultNic);
10791085
}

0 commit comments

Comments
 (0)