NSX: add back removed code for NSX (#9435)

This code snippet has been removed in the merge forward of PR #9240
in commit 90fe1d5fdcc2909130b5de6803b57feeff194f54
This commit is contained in:
Wei Zhou 2024-08-14 17:44:47 +02:00 committed by GitHub
parent 287a47266b
commit 3399abddb0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1072,6 +1072,12 @@ public class NetworkOrchestrator extends ManagerBase implements NetworkOrchestra
return null;
}
if (isNicAllocatedForNsxPublicNetworkOnVR(network, profile, vm)) {
String guruName = "NsxPublicNetworkGuru";
NetworkGuru nsxGuru = AdapterBase.getAdapterByName(networkGurus, guruName);
nsxGuru.allocate(network, profile, vm);
}
if (isDefaultNic != null) {
profile.setDefaultNic(isDefaultNic);
}