mirror of https://github.com/apache/cloudstack.git
Fixed NetworkMgr: getNetworkCapabilities.
The key used to get the capabilities from the provider capabilities map was wrong.
This commit is contained in:
parent
96843be30a
commit
809f9d965e
|
|
@ -1808,6 +1808,7 @@ public class ConfigurationManagerImpl implements ConfigurationManager, Configura
|
|||
Boolean forVirtualNetwork = cmd.isForVirtualNetwork();
|
||||
Long networkId = cmd.getNetworkID();
|
||||
String networkVlanId = null;
|
||||
Long physicalNetworkId = cmd.getPhysicalNetworkId();
|
||||
|
||||
//projectId and accountName can't be specified together
|
||||
String accountName = cmd.getAccountName();
|
||||
|
|
|
|||
|
|
@ -2623,8 +2623,8 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
|
|||
NetworkElement element = getElementImplementingProvider(instance.getProvider());
|
||||
if(element != null){
|
||||
Map<Service, Map<Capability, String>> elementCapabilities = element.getCapabilities();;
|
||||
if (elementCapabilities != null && elementCapabilities.get(service) != null) {
|
||||
networkCapabilities.put(service, elementCapabilities.get(instance.getService()));
|
||||
if (elementCapabilities != null) {
|
||||
networkCapabilities.put(service, elementCapabilities.get(service));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue