Thomas Vachuska | e76f653 | 2015-07-08 09:40:53 -0700 | [diff] [blame] | 1 | <!-- |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | ~ Copyright 2015-present Open Networking Foundation |
Thomas Vachuska | e76f653 | 2015-07-08 09:40:53 -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="net-setup" description="Network setup steps"> |
Thomas Vachuska | cc0b7d6 | 2016-07-12 14:03:11 -0700 | [diff] [blame] | 17 | <!-- Note: This scenario is tailored using 'topo' recipe mechanism; see topos/*.recipe files --> |
Thomas Vachuska | e76f653 | 2015-07-08 09:40:53 -0700 | [diff] [blame] | 18 | <group name="Net-Setup"> |
| 19 | <step name="Push-Topos" exec="onos-push-topos ${OCN}"/> |
| 20 | |
Ray Milkey | 5baa3da | 2015-09-16 15:20:22 -0700 | [diff] [blame] | 21 | <step name="Stop-Mininet-If-Needed" env="~" exec="onos-mininet stop"/> |
Thomas Vachuska | 4d5310c | 2016-07-14 12:48:39 -0700 | [diff] [blame] | 22 | <step name="Clean-Mininet-If-Needed" env="~" exec="onos-mininet cleanup" requires="^"/> |
Ray Milkey | 5baa3da | 2015-09-16 15:20:22 -0700 | [diff] [blame] | 23 | <step name="Wipe-Out-Data-Before" exec="onos-wipe-out" requires="^"/> |
Thomas Vachuska | e76f653 | 2015-07-08 09:40:53 -0700 | [diff] [blame] | 24 | |
| 25 | <step name="Initial-Summary-Check" requires="~Wipe-Out-Data-Before" |
| 26 | exec="onos-check-summary ${OC1} [0-9]* 0 0 0"/> |
| 27 | |
Thomas Vachuska | 3600846 | 2016-01-07 15:38:20 -0800 | [diff] [blame] | 28 | <step name="Config-Topo" requires="~Initial-Summary-Check" |
Thomas Vachuska | cc0b7d6 | 2016-07-12 14:03:11 -0700 | [diff] [blame] | 29 | exec="onos-netcfg ${OC1} ${ONOS_ROOT}/tools/test/topos/${ONOS_TOPO}.json"/> |
Thomas Vachuska | 3600846 | 2016-01-07 15:38:20 -0800 | [diff] [blame] | 30 | |
Thomas Vachuska | e76f653 | 2015-07-08 09:40:53 -0700 | [diff] [blame] | 31 | <step name="Start-Mininet" |
Jon Hall | 1d85439 | 2017-02-20 15:25:08 -0800 | [diff] [blame] | 32 | requires="Config-Topo,Push-Topos,Stop-Mininet-If-Needed" |
Thomas Vachuska | cc0b7d6 | 2016-07-12 14:03:11 -0700 | [diff] [blame] | 33 | exec="onos-mininet start topos/topo ${ONOS_TOPO}.py ${ONOS_INSTANCES}"/> |
Thomas Vachuska | e76f653 | 2015-07-08 09:40:53 -0700 | [diff] [blame] | 34 | |
| 35 | <step name="Wait-For-Mininet" requires="Start-Mininet" |
Thomas Vachuska | 1c15287 | 2015-08-26 18:41:10 -0700 | [diff] [blame] | 36 | exec="onos-mininet wait 10"/> |
Thomas Vachuska | e76f653 | 2015-07-08 09:40:53 -0700 | [diff] [blame] | 37 | |
Thomas Vachuska | 541413d | 2016-04-05 16:37:27 -0700 | [diff] [blame] | 38 | <step name="ARP-Hosts" requires="~Wait-For-Mininet" |
| 39 | exec="onos-mininet sendAndExpect gratuitousArp --expect ."/> |
| 40 | |
| 41 | <step name="Check-Summary" requires="ARP-Hosts" |
Thomas Vachuska | cc0b7d6 | 2016-07-12 14:03:11 -0700 | [diff] [blame] | 42 | exec="onos-check-summary ${OC1} [0-9]* ${OTD} ${OTL} ${OTH}"/> |
Thomas Vachuska | e76f653 | 2015-07-08 09:40:53 -0700 | [diff] [blame] | 43 | |
Thomas Vachuska | e827c0e | 2015-08-04 16:53:18 -0700 | [diff] [blame] | 44 | <step name="Balance-Masters" requires="~Check-Summary" if="${OC2}" |
Thomas Vachuska | e76f653 | 2015-07-08 09:40:53 -0700 | [diff] [blame] | 45 | exec="onos ${OC1} balance-masters"/> |
Thomas Vachuska | a02fc81 | 2015-07-21 18:37:58 -0700 | [diff] [blame] | 46 | |
Ray Milkey | 627f0e5 | 2016-02-24 13:38:29 -0800 | [diff] [blame] | 47 | <step name="Check-Flows" requires="~Balance-Masters,~Check-Summary" delay="5" |
Thomas Vachuska | 409b9cb | 2015-07-31 13:07:12 -0700 | [diff] [blame] | 48 | exec="onos-check-flows ${OC1}"/> |
Thomas Vachuska | e76f653 | 2015-07-08 09:40:53 -0700 | [diff] [blame] | 49 | </group> |
Ray Milkey | 5baa3da | 2015-09-16 15:20:22 -0700 | [diff] [blame] | 50 | </scenario> |