mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-4698: Check DHCP service in the network before get dhcp service provider
This commit is contained in:
parent
6fccd74ae8
commit
37f4a120fd
@ -1535,6 +1535,10 @@ public class NetworkOrchestrator extends ManagerBase implements NetworkOrchestra
|
||||
}
|
||||
|
||||
public boolean isDhcpAccrossMultipleSubnetsSupported(Network network) {
|
||||
if (!_networkModel.areServicesSupportedInNetwork(network.getId(), Service.Dhcp)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
DhcpServiceProvider dhcpServiceProvider = getDhcpServiceProvider(network);
|
||||
Map<Network.Capability, String> capabilities = dhcpServiceProvider.getCapabilities().get(Network.Service.Dhcp);
|
||||
String supportsMultipleSubnets = capabilities.get(Network.Capability.DhcpAccrossMultipleSubnets);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user