mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Support ConfigDrive with VPC (#10495)
This commit is contained in:
parent
a09354ddf5
commit
207a2c1da3
@ -203,8 +203,8 @@ public class ConfigDriveNetworkElement extends AdapterBase implements NetworkEle
|
|||||||
private static Map<Service, Map<Capability, String>> setCapabilities() {
|
private static Map<Service, Map<Capability, String>> setCapabilities() {
|
||||||
Map<Service, Map<Capability, String>> capabilities = new HashMap<>();
|
Map<Service, Map<Capability, String>> capabilities = new HashMap<>();
|
||||||
capabilities.put(Service.UserData, null);
|
capabilities.put(Service.UserData, null);
|
||||||
capabilities.put(Service.Dhcp, new HashMap<>());
|
capabilities.put(Service.Dhcp, Map.of(Network.Capability.DhcpAccrossMultipleSubnets, "true"));
|
||||||
capabilities.put(Service.Dns, new HashMap<>());
|
capabilities.put(Service.Dns, Map.of(Capability.AllowDnsSuffixModification, "true"));
|
||||||
return capabilities;
|
return capabilities;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -841,7 +841,7 @@ public class ConfigDriveNetworkElement extends AdapterBase implements NetworkEle
|
|||||||
public boolean configDhcpSupportForSubnet(Network network, NicProfile nic, VirtualMachineProfile vm,
|
public boolean configDhcpSupportForSubnet(Network network, NicProfile nic, VirtualMachineProfile vm,
|
||||||
DeployDestination dest,
|
DeployDestination dest,
|
||||||
ReservationContext context) throws ConcurrentOperationException, InsufficientCapacityException, ResourceUnavailableException {
|
ReservationContext context) throws ConcurrentOperationException, InsufficientCapacityException, ResourceUnavailableException {
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -449,12 +449,16 @@ export default {
|
|||||||
services.push({
|
services.push({
|
||||||
name: 'Dhcp',
|
name: 'Dhcp',
|
||||||
provider: [
|
provider: [
|
||||||
{ name: 'VpcVirtualRouter' }
|
{ name: 'VpcVirtualRouter' },
|
||||||
|
{ name: 'ConfigDrive' }
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
services.push({
|
services.push({
|
||||||
name: 'Dns',
|
name: 'Dns',
|
||||||
provider: [{ name: 'VpcVirtualRouter' }]
|
provider: [
|
||||||
|
{ name: 'VpcVirtualRouter' },
|
||||||
|
{ name: 'ConfigDrive' }
|
||||||
|
]
|
||||||
})
|
})
|
||||||
services.push({
|
services.push({
|
||||||
name: 'Lb',
|
name: 'Lb',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user