Refactoring devstack script
Change-Id: Iabb7313b667ef6921acbb65b1eb583603b4d0b11
This commit is contained in:
@@ -5,14 +5,14 @@ source $LIBDIR/l2_agent_sriovnicswitch
|
|||||||
source $LIBDIR/ml2
|
source $LIBDIR/ml2
|
||||||
source $LIBDIR/qos
|
source $LIBDIR/qos
|
||||||
|
|
||||||
|
if [[ "$1" == "stack" ]]; then
|
||||||
if [[ "$1" == "stack" && "$2" == "install" ]]; then
|
case "$2" in
|
||||||
|
install)
|
||||||
if is_service_enabled q-qos; then
|
if is_service_enabled q-qos; then
|
||||||
configure_qos
|
configure_qos
|
||||||
fi
|
fi
|
||||||
fi
|
;;
|
||||||
|
post-config)
|
||||||
if [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
|
||||||
if is_service_enabled q-agt; then
|
if is_service_enabled q-agt; then
|
||||||
configure_l2_agent
|
configure_l2_agent
|
||||||
fi
|
fi
|
||||||
@@ -26,15 +26,14 @@ if [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
|||||||
configure_l2_agent
|
configure_l2_agent
|
||||||
configure_l2_agent_sriovnicswitch
|
configure_l2_agent_sriovnicswitch
|
||||||
fi
|
fi
|
||||||
fi
|
;;
|
||||||
|
extra)
|
||||||
if [[ "$1" == "stack" && "$2" == "extra" ]]; then
|
|
||||||
if is_service_enabled q-sriov-agt; then
|
if is_service_enabled q-sriov-agt; then
|
||||||
start_l2_agent_sriov
|
start_l2_agent_sriov
|
||||||
fi
|
fi
|
||||||
fi
|
;;
|
||||||
|
esac
|
||||||
if [[ "$1" == "unstack" ]]; then
|
elif [[ "$1" == "unstack" ]]; then
|
||||||
if is_service_enabled q-sriov-agt; then
|
if is_service_enabled q-sriov-agt; then
|
||||||
stop_l2_agent_sriov
|
stop_l2_agent_sriov
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user