blob: 1a8d754d947898b6463117eb09c76315ad726bf6 [file] [log] [blame]
Thomas Vachuskaf9c84362015-04-15 11:20:45 -07001<!--
2 ~ Copyright 2015 Open Networking Laboratory
3 ~
4 ~ Licensed under the Apache License, Version 2.0 (the "License");
5 ~ you may not use this file except in compliance with the License.
6 ~ You may obtain a copy of the License at
7 ~
8 ~ http://www.apache.org/licenses/LICENSE-2.0
9 ~
10 ~ Unless required by applicable law or agreed to in writing, software
11 ~ distributed under the License is distributed on an "AS IS" BASIS,
12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ~ See the License for the specific language governing permissions and
14 ~ limitations under the License.
15 -->
16<scenario name="setup" description="ONOS cluster setup">
17 <group name="Setup">
18 <step name="Push-Bits" exec="onos-push-bits-through-proxy" if="${OCT}"/>
Thomas Vachuska8189a742015-05-29 10:02:52 -070019
Thomas Vachuskaf9c84362015-04-15 11:20:45 -070020 <parallel var="${OC#}">
Thomas Vachuskaa48e3d12015-06-02 09:43:29 -070021 <step name="Push-Bits-${#}" exec="onos-push-bits ${OC#}" unless="${OCT}"/>
Thomas Vachuskaf9c84362015-04-15 11:20:45 -070022 <step name="Uninstall-${#}" exec="onos-uninstall ${OC#}"/>
Thomas Vachuska43554962015-06-02 11:45:24 -070023 <step name="Kill-${#}" env="~" exec="onos-kill ${OC#}"/>
Thomas Vachuska8189a742015-05-29 10:02:52 -070024
Thomas Vachuskaf9c84362015-04-15 11:20:45 -070025 <step name="Install-${#}" exec="onos-install ${OC#}"
Thomas Vachuskaa48e3d12015-06-02 09:43:29 -070026 requires="Uninstall-${#},Push-Bits-${#},Push-Bits"/>
Thomas Vachuska8189a742015-05-29 10:02:52 -070027
Thomas Vachuskaf9c84362015-04-15 11:20:45 -070028 <step name="Wait-for-Start-${#}" exec="onos-wait-for-start ${OC#}"
29 requires="Install-${#}"/>
Thomas Vachuska8189a742015-05-29 10:02:52 -070030
Thomas Vachuskaf9c84362015-04-15 11:20:45 -070031 <step name="Check-Logs-${#}" exec="onos-check-logs ${OC#}"
Thomas Vachuska18571b02015-05-31 22:30:06 -070032 requires="~Wait-for-Start-${#}"/>
Thomas Vachuska8189a742015-05-29 10:02:52 -070033 <step name="Check-Components-${#}" exec="onos-check-components ${OC#}"
Thomas Vachuska43554962015-06-02 11:45:24 -070034 requires="~Wait-for-Start-${#},~Check-Logs-${#}"/>
Thomas Vachuska8189a742015-05-29 10:02:52 -070035 <step name="Check-Apps-${#}" exec="onos-check-apps ${OC#}"
Thomas Vachuska43554962015-06-02 11:45:24 -070036 requires="~Wait-for-Start-${#},~Check-Logs-${#}"/>
Thomas Vachuskaf9c84362015-04-15 11:20:45 -070037 </parallel>
38 </group>
39</scenario>