mirror of https://github.com/apache/cloudstack.git
Summary: Polish and shine
Document the used options in agent.properties Default the bridge driver to something sensible based on the configuration of the bridge type.
This commit is contained in:
parent
4267a3fc7c
commit
9f00302ad3
|
|
@ -69,3 +69,14 @@ domr.scripts.dir=scripts/network/domr/kvm
|
|||
# set the vm migrate speed, by default, it will try to guess the speed of the guest network
|
||||
# In MegaBytes per second
|
||||
#vm.migrate.speed=0
|
||||
|
||||
# set the type of bridge used on the hypervisor, this defines what commands the resource
|
||||
# will use to setup networking. Currently supported NATIVE, OPENVSWITCH
|
||||
#network.bridge.type=native
|
||||
|
||||
# set the driver used to plug and unplug nics from the bridges
|
||||
# a sensible default will be selected based on the network.bridge.type but can
|
||||
# be overridden here.
|
||||
# native = com.cloud.hypervisor.kvm.resource.BridgeVifDriver
|
||||
# openvswitch = com.cloud.hypervisor.kvm.resource.OvsBridgeDriver
|
||||
#libvirt.vif.driver=com.cloud.hypervisor.kvm.resource.BridgeVifDriver
|
||||
|
|
@ -786,8 +786,14 @@ public class LibvirtComputingResource extends ServerResourceBase implements
|
|||
// Load the vif driver
|
||||
String vifDriverName = (String) params.get("libvirt.vif.driver");
|
||||
if (vifDriverName == null) {
|
||||
s_logger.info("No libvirt.vif.driver specififed. Defaults to BridgeVifDriver.");
|
||||
vifDriverName = "com.cloud.hypervisor.kvm.resource.BridgeVifDriver";
|
||||
if (_bridgeType == BridgeType.OPENVSWITCH) {
|
||||
s_logger.info("No libvirt.vif.driver specififed. Defaults to OvsVifDriver.");
|
||||
vifDriverName = "com.cloud.hypervisor.kvm.resource.OvsVifDriver";
|
||||
}
|
||||
else {
|
||||
s_logger.info("No libvirt.vif.driver specififed. Defaults to BridgeVifDriver.");
|
||||
vifDriverName = "com.cloud.hypervisor.kvm.resource.BridgeVifDriver";
|
||||
}
|
||||
}
|
||||
|
||||
params.put("libvirt.computing.resource", (Object) this);
|
||||
|
|
|
|||
Loading…
Reference in New Issue