Add support for quantum from cloud-controller

This commit is contained in:
James Page 2012-11-12 16:18:01 +00:00
parent 385153d8f2
commit d038132286
2 changed files with 14 additions and 1 deletions

View File

@ -81,6 +81,19 @@ function configure_network_manager {
# address of API server to forward requests
set_or_update ec2_dmz_host $ec2_host
;;
"Quantum")
set_or_update "network_api_class" "nova.network.quantumv2.api.API"
set_or_update "quantum_auth_strategy" "keystone"
set_or_update "quantum_url" "http://$(relation-get quantum_host):9696"
set_or_update "quantum_admin_tenant_name" "$(relation-get service_tenant)"
set_or_update "quantum_admin_username" "$(relation-get service_username)"
set_or_update "quantum_admin_password" "$(relation-get service_password)"
set_or_update "quantum_admin_auth_url" \
"http://$(relation-get keystone_host):$(relation-get auth_port)/v2.0"
# TODO: pass plugin type over relations for dynamic configuration
set_or_update "libvirt_vif_driver" "nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver"
set_or_update "libvirt_use_virtio_for_bridges" "True"
;;
*) echo "ERROR: Invalid network manager $1" && exit 1 ;;
esac
}

View File

@ -1 +1 @@
73
74