Thomas Vachuska | e76f653 | 2015-07-08 09:40:53 -0700 | [diff] [blame] | 1 | <!-- |
| 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="net-setup" description="Network setup steps"> |
| 17 | <!-- TODO: parametrize this via recipes --> |
| 18 | <group name="Net-Setup"> |
| 19 | <step name="Push-Topos" exec="onos-push-topos ${OCN}"/> |
Thomas Vachuska | 0ec6ff4 | 2015-07-17 11:00:02 -0700 | [diff] [blame] | 20 | <step name="Stop-Mininet-If-Needed" env="~" exec="onos-mininet stop"/> |
Thomas Vachuska | e76f653 | 2015-07-08 09:40:53 -0700 | [diff] [blame] | 21 | |
Thomas Vachuska | a02fc81 | 2015-07-21 18:37:58 -0700 | [diff] [blame] | 22 | <step name="Wipe-Out-Data-Before" exec="onos-wipe-out"/> |
Thomas Vachuska | e76f653 | 2015-07-08 09:40:53 -0700 | [diff] [blame] | 23 | |
| 24 | <step name="Initial-Summary-Check" requires="~Wipe-Out-Data-Before" |
| 25 | exec="onos-check-summary ${OC1} [0-9]* 0 0 0"/> |
| 26 | |
| 27 | <step name="Start-Mininet" |
Thomas Vachuska | 0ec6ff4 | 2015-07-17 11:00:02 -0700 | [diff] [blame] | 28 | requires="Install-Apps,Initial-Summary-Check,Push-Topos,Stop-Mininet-If-Needed" |
Thomas Vachuska | e76f653 | 2015-07-08 09:40:53 -0700 | [diff] [blame] | 29 | exec="onos-mininet start topos/topo att-onos.py ${ONOS_INSTANCES}"/> |
| 30 | |
| 31 | <step name="Wait-For-Mininet" requires="Start-Mininet" |
Thomas Vachuska | 0ec6ff4 | 2015-07-17 11:00:02 -0700 | [diff] [blame] | 32 | exec="onos-mininet wait 20"/> |
Thomas Vachuska | e76f653 | 2015-07-08 09:40:53 -0700 | [diff] [blame] | 33 | |
| 34 | <step name="Check-Summary" requires="Wait-For-Mininet" |
Thomas Vachuska | 2527a0f | 2015-07-14 11:38:21 -0700 | [diff] [blame] | 35 | exec="onos-check-summary ${OC1} [0-9]* 25 140 0"/> |
Thomas Vachuska | e76f653 | 2015-07-08 09:40:53 -0700 | [diff] [blame] | 36 | |
Thomas Vachuska | e827c0e | 2015-08-04 16:53:18 -0700 | [diff] [blame] | 37 | <step name="Balance-Masters" requires="~Check-Summary" if="${OC2}" |
Thomas Vachuska | e76f653 | 2015-07-08 09:40:53 -0700 | [diff] [blame] | 38 | exec="onos ${OC1} balance-masters"/> |
Thomas Vachuska | a02fc81 | 2015-07-21 18:37:58 -0700 | [diff] [blame] | 39 | |
Thomas Vachuska | e827c0e | 2015-08-04 16:53:18 -0700 | [diff] [blame] | 40 | <step name="Pause-For-Masters" requires="Balance-Masters" if="${OC2}" |
Thomas Vachuska | a02fc81 | 2015-07-21 18:37:58 -0700 | [diff] [blame] | 41 | exec="sleep 10"/> |
Thomas Vachuska | 409b9cb | 2015-07-31 13:07:12 -0700 | [diff] [blame] | 42 | |
Thomas Vachuska | e827c0e | 2015-08-04 16:53:18 -0700 | [diff] [blame] | 43 | <step name="Check-Flows" requires="~Pause-For-Masters,~Check-Summary" |
Thomas Vachuska | 409b9cb | 2015-07-31 13:07:12 -0700 | [diff] [blame] | 44 | exec="onos-check-flows ${OC1}"/> |
Thomas Vachuska | e76f653 | 2015-07-08 09:40:53 -0700 | [diff] [blame] | 45 | </group> |
| 46 | </scenario> |