Ray Milkey | 51cf307 | 2018-12-11 08:46:52 -0800 | [diff] [blame] | 1 | <!-- |
| 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 Cascone | 0c6f0a5 | 2018-12-13 23:16:10 -0800 | [diff] [blame] | 18 | <scenario name="net-trellis-p4-smoke" |
| 19 | description="Trellis P4 network connectivity test steps"> |
Ray Milkey | 51cf307 | 2018-12-11 08:46:52 -0800 | [diff] [blame] | 20 | |
Ray Milkey | c05bd43 | 2019-01-14 09:50:16 -0800 | [diff] [blame] | 21 | <group name="Net-Trellis-P4-Setup"> |
Ray Milkey | 51cf307 | 2018-12-11 08:46:52 -0800 | [diff] [blame] | 22 | |
Ray Milkey | c05bd43 | 2019-01-14 09:50:16 -0800 | [diff] [blame] | 23 | <import file="${ONOS_SCENARIOS}/net-setup-trellis-p4.xml"/> |
Ray Milkey | 51cf307 | 2018-12-11 08:46:52 -0800 | [diff] [blame] | 24 | |
Ray Milkey | c05bd43 | 2019-01-14 09:50:16 -0800 | [diff] [blame] | 25 | <step name="Net-Trellis-P4-Smoke.Check-Summary" |
| 26 | requires="Trellis-Net-P4-Setup.Wait-For-Mininet" delay="5" |
Carmelo Cascone | 34d116c | 2019-03-13 18:58:41 -0700 | [diff] [blame] | 27 | exec="onos-check-summary ${OC1} [0-9]* 4 8 0 [0-9]*"/> |
Carmelo Cascone | 0c6f0a5 | 2018-12-13 23:16:10 -0800 | [diff] [blame] | 28 | |
Ray Milkey | c05bd43 | 2019-01-14 09:50:16 -0800 | [diff] [blame] | 29 | <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 Cascone | 0c6f0a5 | 2018-12-13 23:16:10 -0800 | [diff] [blame] | 32 | |
Ray Milkey | c05bd43 | 2019-01-14 09:50:16 -0800 | [diff] [blame] | 33 | <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 Cascone | 0c6f0a5 | 2018-12-13 23:16:10 -0800 | [diff] [blame] | 36 | |
Ray Milkey | c05bd43 | 2019-01-14 09:50:16 -0800 | [diff] [blame] | 37 | <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 Cascone | 0c6f0a5 | 2018-12-13 23:16:10 -0800 | [diff] [blame] | 40 | |
Ray Milkey | c05bd43 | 2019-01-14 09:50:16 -0800 | [diff] [blame] | 41 | <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 Cascone | 0c6f0a5 | 2018-12-13 23:16:10 -0800 | [diff] [blame] | 44 | |
Ray Milkey | c05bd43 | 2019-01-14 09:50:16 -0800 | [diff] [blame] | 45 | <!-- 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" |
| 48 | exec="onos-check-summary ${OC1} [0-9]* 4 8 4 136"/> |
Ray Milkey | 51cf307 | 2018-12-11 08:46:52 -0800 | [diff] [blame] | 49 | |
Ray Milkey | c05bd43 | 2019-01-14 09:50:16 -0800 | [diff] [blame] | 50 | <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 Milkey | 51cf307 | 2018-12-11 08:46:52 -0800 | [diff] [blame] | 54 | |
Ray Milkey | c05bd43 | 2019-01-14 09:50:16 -0800 | [diff] [blame] | 55 | <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 Milkey | 51cf307 | 2018-12-11 08:46:52 -0800 | [diff] [blame] | 65 | |
Carmelo Cascone | 4c3364b | 2018-12-13 15:56:34 -0800 | [diff] [blame] | 66 | </scenario> |