Carmelo Cascone | 0c6f0a5 | 2018-12-13 23:16:10 -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 | |
| 18 | <scenario name="net-trellis-p4-connectivity" |
| 19 | description="Trellis P4 network connectivity test steps"> |
| 20 | |
| 21 | <group name="Net-Trellis-P4-Connectivity-Host-Discovery"> |
| 22 | <step name="Net-Trellis-P4-Connectivity-Host-Discovery.h1" |
| 23 | exec="onos-mininet sendAndExpect h1 ping -c1 10.0.2.254 --expect \ 0% packet loss"/> |
| 24 | <step name="Net-Trellis-P4-Connectivity-Host-Discovery.h2" |
| 25 | exec="onos-mininet sendAndExpect h2 ping -c1 10.0.2.254 --expect \ 0% packet loss" |
| 26 | requires="~^"/> |
| 27 | <step name="Net-Trellis-P4-Connectivity-Host-Discovery.h3" |
| 28 | exec="onos-mininet sendAndExpect h3 ping -c1 10.0.3.254 --expect \ 0% packet loss" |
| 29 | requires="~^"/> |
| 30 | <step name="Net-Trellis-P4-Connectivity-Host-Discovery.h4" |
| 31 | exec="onos-mininet sendAndExpect h4 ping -c1 10.0.3.254 --expect \ 0% packet loss" |
| 32 | requires="~^"/> |
| 33 | </group> |
| 34 | |
| 35 | <group name="Net-Trellis-P4-Connectivity-Bridging" |
| 36 | requires="Net-Trellis-P4-Connectivity-Host-Discovery"> |
| 37 | <step name="Net-Trellis-P4-Connectivity-Bridging.IP4Ping1" |
| 38 | exec="onos-mininet sendAndExpect h1 ping -c1 h2 --expect \ 0% packet loss" |
| 39 | requires="Net-Trellis-P4-Connectivity-Host-Discovery"/> |
| 40 | <step name="Net-Trellis-P4-Connectivity-Bridging.IP4Ping2" |
| 41 | exec="onos-mininet sendAndExpect h3 ping -c1 h4 --expect \ 0% packet loss" |
| 42 | requires="~^"/> |
| 43 | </group> |
| 44 | |
| 45 | <group name="Net-Trellis-P4-Connectivity-Routing" |
| 46 | requires="~Net-Trellis-P4-Connectivity-Bridging"> |
| 47 | <step name="Net-Trellis-P4-Connectivity-Routing.IP4Ping1" |
| 48 | exec="onos-mininet sendAndExpect h1 ping -c1 h3 --expect \ 0% packet loss" |
| 49 | requires="~Net-Trellis-P4-Connectivity-Bridging"/> |
| 50 | <step name="Net-Trellis-P4-Connectivity-Routing.IP4Ping2" |
| 51 | exec="onos-mininet sendAndExpect h1 ping -c1 h4 --expect \ 0% packet loss" |
| 52 | requires="~^"/> |
| 53 | <step name="Net-Trellis-P4-Connectivity-Routing.IP4Ping3" |
| 54 | exec="onos-mininet sendAndExpect h2 ping -c1 h3 --expect \ 0% packet loss" |
| 55 | requires="~^"/> |
| 56 | <step name="Net-Trellis-P4-Connectivity-Routing.IP4Ping4" |
| 57 | exec="onos-mininet sendAndExpect h2 ping -c1 h4 --expect \ 0% packet loss" |
| 58 | requires="~^"/> |
| 59 | </group> |
| 60 | |
| 61 | </scenario> |