blob: 8b767dda8e773548f6682cc3fbeb5bc5599b7db2 [file] [log] [blame]
Ray Milkey51cf3072018-12-11 08:46:52 -08001<!--
2 ~ Copyright 2018-present Open Networking Foundation
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
17
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080018<scenario name="net-trellis-p4-smoke"
19 description="Trellis P4 network connectivity test steps">
Ray Milkey51cf3072018-12-11 08:46:52 -080020
Ray Milkeyc05bd432019-01-14 09:50:16 -080021 <group name="Net-Trellis-P4-Setup">
Ray Milkey51cf3072018-12-11 08:46:52 -080022
Ray Milkeyc05bd432019-01-14 09:50:16 -080023 <import file="${ONOS_SCENARIOS}/net-setup-trellis-p4.xml"/>
Ray Milkey51cf3072018-12-11 08:46:52 -080024
Ray Milkeyc05bd432019-01-14 09:50:16 -080025 <step name="Net-Trellis-P4-Smoke.Check-Summary"
26 requires="Trellis-Net-P4-Setup.Wait-For-Mininet" delay="5"
Carmelo Cascone34d116c2019-03-13 18:58:41 -070027 exec="onos-check-summary ${OC1} [0-9]* 4 8 0 [0-9]*"/>
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080028
Ray Milkeyc05bd432019-01-14 09:50:16 -080029 <import file="${ONOS_SCENARIOS}/net-trellis-p4-devices.xml"/>
30 <dependency name="Net-Trellis-P4-Devices"
31 requires="Net-Trellis-P4-Smoke.Check-Summary"/>
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080032
Ray Milkeyc05bd432019-01-14 09:50:16 -080033 <import file="${ONOS_SCENARIOS}/net-trellis-p4-links.xml"/>
34 <dependency name="Net-Trellis-P4-Links"
35 requires="Net-Trellis-P4-Smoke.Check-Summary"/>
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080036
Ray Milkeyc05bd432019-01-14 09:50:16 -080037 <import file="${ONOS_SCENARIOS}/net-trellis-p4-connectivity.xml"/>
38 <dependency name="Net-Trellis-P4-Connectivity-Host-Discovery"
39 requires="Net-Trellis-P4-Smoke.Check-Summary"/>
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080040
Ray Milkeyc05bd432019-01-14 09:50:16 -080041 <import file="${ONOS_SCENARIOS}/net-trellis-p4-hosts.xml"/>
42 <dependency name="Net-Trellis-P4-Hosts"
43 requires="Net-Trellis-P4-Connectivity-Host-Discovery"/>
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080044
Ray Milkeyc05bd432019-01-14 09:50:16 -080045 <!-- Check additional flow rules for discovered hosts -->
46 <step name="Net-Trellis-P4-Smoke.Check-Summary-2"
47 requires="Net-Trellis-P4-Connectivity-Host-Discovery" delay="3"
Ray Milkey8c570152019-04-09 13:50:46 -070048 exec="onos-check-summary ${OC1} [0-9]* 4 8 4 1[0-9][0-9]"/>
Ray Milkey51cf3072018-12-11 08:46:52 -080049
Ray Milkeyc05bd432019-01-14 09:50:16 -080050 <dependency name="Net-Trellis-P4-Connectivity-Bridging"
51 requires="Net-Trellis-P4-Smoke.Check-Summary-2"/>
52 <dependency name="Net-Trellis-P4-Connectivity-Routing"
53 requires="Net-Trellis-P4-Smoke.Check-Summary-2,~Net-Trellis-P4-Connectivity-Bridging"/>
Ray Milkey51cf3072018-12-11 08:46:52 -080054
Ray Milkeyc05bd432019-01-14 09:50:16 -080055 <import file="${ONOS_SCENARIOS}/net-teardown.xml"/>
56 <dependency name="Net-Teardown"
57 requires="~Net-Trellis-P4-Devices,~Net-Trellis-P4-Links,~Net-Trellis-P4-Hosts,~Net-Trellis-P4-Connectivity-Bridging,~Net-Trellis-P4-Connectivity-Routing"/>
58
59 <parallel var="${OC#}">
60 <step name="Net-Trellis-P4-Smoke-Check-Logs-${#}"
61 requires="~Net-Teardown"
62 exec="onos-check-logs ${OC#}"/>
63 </parallel>
64 </group>
Ray Milkey51cf3072018-12-11 08:46:52 -080065
Carmelo Cascone4c3364b2018-12-13 15:56:34 -080066</scenario>