CS-14929: Exception while creating a port forwarding rule on an acquired ip

CS-14943: Unable to deploy VM due to Unable to identify the provider by name CiscoNexus1000vVSM

Description:

	Ignore the CiscoNexus1000vVSM provider when checking for
	providers when applying port forwarding rules.
This commit is contained in:
Vijayendra Bhamidipati 2012-05-16 13:04:57 -07:00
parent 492e41c462
commit f204185841
1 changed files with 2 additions and 1 deletions

View File

@ -3205,7 +3205,8 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
for (NetworkElement ne : _networkElements) {
Provider provider = Network.Provider.getProvider(ne.getName());
if (provider == null) {
if (ne.getName().equalsIgnoreCase("Ovs") || ne.getName().equalsIgnoreCase("BareMetal")) {
if (ne.getName().equalsIgnoreCase("Ovs") || ne.getName().equalsIgnoreCase("BareMetal")
|| ne.getName().equalsIgnoreCase("CiscoNexus1000vVSM")) {
continue;
}
throw new CloudRuntimeException("Unable to identify the provider by name " + ne.getName());