Thomas Vachuska | f9c8436 | 2015-04-15 11:20:45 -0700 | [diff] [blame] | 1 | <!-- |
Brian O'Connor | 5ab426f | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 2 | ~ Copyright 2015-present Open Networking Laboratory |
Thomas Vachuska | f9c8436 | 2015-04-15 11:20:45 -0700 | [diff] [blame] | 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 Vachuska | 68acdba | 2016-03-02 19:41:27 -0800 | [diff] [blame] | 19 | <step name="Enable-Flow-Objective-Intents" if="${ONOS_USE_FOI}" |
| 20 | exec="onos ${OC1} cfg set org.onosproject.net.intent.impl.compiler.IntentConfigurableRegistrator useFlowObjectives true"/> |
Thomas Vachuska | 8189a74 | 2015-05-29 10:02:52 -0700 | [diff] [blame] | 21 | |
Thomas Vachuska | f9c8436 | 2015-04-15 11:20:45 -0700 | [diff] [blame] | 22 | <parallel var="${OC#}"> |
Thomas Vachuska | 12bf445 | 2015-06-26 09:15:38 -0700 | [diff] [blame] | 23 | <step name="Push-Bits-${#}" exec="onos-push-bits ${OC#}" |
| 24 | unless="${OCT}"/> |
Thomas Vachuska | f9c8436 | 2015-04-15 11:20:45 -0700 | [diff] [blame] | 25 | <step name="Uninstall-${#}" exec="onos-uninstall ${OC#}"/> |
Thomas Vachuska | 12bf445 | 2015-06-26 09:15:38 -0700 | [diff] [blame] | 26 | <step name="Kill-${#}" env="~" exec="onos-kill ${OC#}" |
| 27 | requires="Uninstall-${#}"/> |
Thomas Vachuska | 8189a74 | 2015-05-29 10:02:52 -0700 | [diff] [blame] | 28 | |
Thomas Vachuska | f9c8436 | 2015-04-15 11:20:45 -0700 | [diff] [blame] | 29 | <step name="Install-${#}" exec="onos-install ${OC#}" |
Thomas Vachuska | 4cfcc56 | 2015-06-03 09:51:02 -0700 | [diff] [blame] | 30 | requires="Kill-${#},Push-Bits-${#},Push-Bits"/> |
Thomas Vachuska | 8189a74 | 2015-05-29 10:02:52 -0700 | [diff] [blame] | 31 | |
Thomas Vachuska | 3534933 | 2016-04-04 14:06:46 -0700 | [diff] [blame] | 32 | <step name="Secure-SSH-${#}" requires="Install-${#}" |
| 33 | exec="onos-secure-ssh -u ${ONOS_WEB_USER} -p ${ONOS_WEB_PASS} ${OC#}" |
| 34 | if="${ONOS_USE_SSH}"/> |
Thomas Vachuska | 12bf445 | 2015-06-26 09:15:38 -0700 | [diff] [blame] | 35 | |
Thomas Vachuska | f9c8436 | 2015-04-15 11:20:45 -0700 | [diff] [blame] | 36 | <step name="Wait-for-Start-${#}" exec="onos-wait-for-start ${OC#}" |
Thomas Vachuska | 3534933 | 2016-04-04 14:06:46 -0700 | [diff] [blame] | 37 | requires="Install-${#},~Secure-SSH-${#}"/> |
Thomas Vachuska | 8189a74 | 2015-05-29 10:02:52 -0700 | [diff] [blame] | 38 | |
Thomas Vachuska | 731193d | 2015-12-10 11:41:46 -0800 | [diff] [blame] | 39 | <step name="Check-Nodes-${#}" exec="onos-check-nodes ${OC#}" delay="3" |
Thomas Vachuska | 4b84baf | 2015-07-27 10:49:06 -0700 | [diff] [blame] | 40 | requires="~Wait-for-Start-${#}"/> |
Thomas Vachuska | 731193d | 2015-12-10 11:41:46 -0800 | [diff] [blame] | 41 | <step name="Check-Components-${#}" delay="5" |
Thomas Vachuska | 12bf445 | 2015-06-26 09:15:38 -0700 | [diff] [blame] | 42 | exec="onos-check-components ${OC#}" |
Thomas Vachuska | 4cfcc56 | 2015-06-03 09:51:02 -0700 | [diff] [blame] | 43 | requires="~Wait-for-Start-${#}"/> |
Thomas Vachuska | 731193d | 2015-12-10 11:41:46 -0800 | [diff] [blame] | 44 | |
| 45 | <step name="Check-Logs-${#}" exec="onos-check-logs ${OC#}" |
| 46 | requires="~Check-Components-${#}"/> |
| 47 | <step name="Check-Apps-${#}" exec="onos-check-apps ${OC#} ${ONOS_APPS} includes" |
| 48 | requires="~Check-Components-${#}"/> |
Thomas Vachuska | 68acdba | 2016-03-02 19:41:27 -0800 | [diff] [blame] | 49 | |
| 50 | <dependency name="Enable-Flow-Objective-Intents" requires="Check-Apps-${#}"/> |
Thomas Vachuska | f9c8436 | 2015-04-15 11:20:45 -0700 | [diff] [blame] | 51 | </parallel> |
| 52 | </group> |
| 53 | </scenario> |