Skip to content

Commit 3399abd

Browse files
NSX: add back removed code for NSX (#9435)
This code snippet has been removed in the merge forward of PR #9240 in commit 90fe1d5
1 parent 287a472 commit 3399abd

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
@@ -1072,6 +1072,12 @@ private NicVO checkForRaceAndAllocateNic(final NicProfile requested, final Netwo
10721072
return null;
10731073
}
10741074

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

0 commit comments

Comments
 (0)