summaryrefslogtreecommitdiff
path: root/devstack/plugin.sh
diff options
context:
space:
mode:
authorvsaienko <vsaienko@mirantis.com>2015-12-11 13:14:00 +0200
committerVasyl Saienko <vsaienko@mirantis.com>2016-07-14 14:00:42 +0300
commit75fc071b54a07fbdbaabaebd359299170bd7fda2 (patch)
tree283d258dd3abb476b84b7206eecdf5905fad1897 /devstack/plugin.sh
parent8fe320753c10ede6445781cc884cadc2bc235ea5 (diff)
downloadironic-75fc071b54a07fbdbaabaebd359299170bd7fda2.tar.gz
Add configure_provision_network function
This change allows to configure ironic provision network by setting IRONIC_PROVISION_NETWORK_NAME variable. In this case additional interface $OVS_PHYSICAL_BRIDGE.$IRONIC_PROVISION_SEGMENTATION_ID will be configured with IRONIC_PROVISION_SUBNET_GATEWAY ip address. Additional configuration parameters are: IRONIC_PROVISION_PROVIDER_NETWORK_TYPE IRONIC_PROVISION_SEGMENTATION_ID IRONIC_PROVISION_ALLOCATION_POOL IRONIC_PROVISION_SUBNET_GATEWAY IRONIC_PROVISION_SUBNET_PREFIX Change-Id: I619f2fb92aafe7348b0a47eaaaad1790df5ae5c7 Partial-bug: #1526403
Diffstat (limited to 'devstack/plugin.sh')
-rw-r--r--devstack/plugin.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/devstack/plugin.sh b/devstack/plugin.sh
index f10358ba5..bd635c487 100644
--- a/devstack/plugin.sh
+++ b/devstack/plugin.sh
@@ -37,6 +37,15 @@ if is_service_enabled ir-api ir-cond; then
# Initialize ironic
init_ironic
+ if [[ "$IRONIC_IS_HARDWARE" == "False" ]]; then
+ echo_summary "Creating bridge and VMs"
+ create_bridge_and_vms
+ fi
+ if [[ -n "${IRONIC_PROVISION_NETWORK_NAME}" ]]; then
+ echo_summary "Configuring Ironic provisioning network"
+ configure_ironic_provision_network
+ fi
+
# Start the ironic API and ironic taskmgr components
echo_summary "Starting Ironic"
start_ironic
@@ -51,6 +60,7 @@ if is_service_enabled ir-api ir-cond; then
# unstack - Called by unstack.sh before other services are shut down.
stop_ironic
+ cleanup_ironic_provision_network
cleanup_baremetal_basic_ops
fi