Thomas Vachuska | 33937c4 | 2015-07-15 17:40:32 -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 | 33937c4 | 2015-07-15 17:40:32 -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-host-intent" description="Network host intent connectivity test"> |
| 17 | <!-- TODO: parametrize this via recipes --> |
| 18 | <group name="Host-Intent-Connectivity"> |
Thomas Vachuska | 33937c4 | 2015-07-15 17:40:32 -0700 | [diff] [blame] | 19 | |
Ray Milkey | 955c4b8 | 2016-07-11 09:48:53 -0700 | [diff] [blame] | 20 | <step name="Host-Intent.Find-Host-1" |
Thomas Vachuska | 1c15287 | 2015-08-26 18:41:10 -0700 | [diff] [blame] | 21 | exec="onos-mininet sendAndExpect h1 ping -c1 -w1 h4 --expect ."/> |
| 22 | <step name="Host-Intent.Find-Host-2" requires="^" |
| 23 | exec="onos-mininet sendAndExpect h4 ping -c1 -w1 h1 --expect ."/> |
Thomas Vachuska | 33937c4 | 2015-07-15 17:40:32 -0700 | [diff] [blame] | 24 | |
Thomas Vachuska | 1c15287 | 2015-08-26 18:41:10 -0700 | [diff] [blame] | 25 | <step name="Host-Intent.Create-Intent" requires="^" |
| 26 | exec="onos-create-intent ${OC1} h2h host 00:00:00:00:00:01/-1 00:00:00:00:00:04/-1"/> |
| 27 | <step name="Host-Intent.Validate-Intent-Installed" requires="Host-Intent.Create-Intent" |
| 28 | exec="onos-check-intent ${OC1} h2h INSTALLED"/> |
Thomas Vachuska | 33937c4 | 2015-07-15 17:40:32 -0700 | [diff] [blame] | 29 | |
| 30 | <import file="${ONOS_SCENARIOS}/net-link-down-up.xml" namespace="Host-Intent"/> |
Thomas Vachuska | 1c15287 | 2015-08-26 18:41:10 -0700 | [diff] [blame] | 31 | <dependency name="Host-Intent.Net-Link-Down-Up" |
| 32 | requires="Host-Intent.Validate-Intent-Installed"/> |
Ray Milkey | bba7138 | 2015-08-26 13:09:23 -0700 | [diff] [blame] | 33 | |
Thomas Vachuska | 1c15287 | 2015-08-26 18:41:10 -0700 | [diff] [blame] | 34 | <step name="Host-Intent.Validate-Intent-Installed-Still" requires="Host-Intent.Link-1-Down" |
| 35 | exec="onos-check-intent ${OC1} h2h INSTALLED"/> |
Thomas Vachuska | 33937c4 | 2015-07-15 17:40:32 -0700 | [diff] [blame] | 36 | |
Yuta HIGUCHI | df5eeb1 | 2017-05-05 21:19:02 -0700 | [diff] [blame] | 37 | <import file="${ONOS_SCENARIOS}/log-mark.xml" namespace="Host-Intent"/> |
| 38 | <dependency name="Host-Intent.ExpectExceptionMarkBegin" |
| 39 | requires="~Host-Intent.Validate-Intent-Installed-Still"/> |
| 40 | |
Thomas Vachuska | 1c15287 | 2015-08-26 18:41:10 -0700 | [diff] [blame] | 41 | <dependency name="Host-Intent.Link-2-Down" |
Yuta HIGUCHI | df5eeb1 | 2017-05-05 21:19:02 -0700 | [diff] [blame] | 42 | requires="Host-Intent.ExpectExceptionMarkBegin" /> |
Ray Milkey | c345663 | 2015-08-24 17:06:29 -0700 | [diff] [blame] | 43 | |
Thomas Vachuska | 1c15287 | 2015-08-26 18:41:10 -0700 | [diff] [blame] | 44 | <step name="Host-Intent.Validate-Intent-Failed" requires="Host-Intent.Link-2-Down" |
| 45 | exec="onos-check-intent ${OC1} h2h FAILED"/> |
Ray Milkey | c345663 | 2015-08-24 17:06:29 -0700 | [diff] [blame] | 46 | |
Thomas Vachuska | 1c15287 | 2015-08-26 18:41:10 -0700 | [diff] [blame] | 47 | <dependency name="Host-Intent.Link-1-Up" |
Ray Milkey | 279c5ff | 2017-05-11 10:30:40 -0700 | [diff] [blame] | 48 | requires="~Host-Intent.Validate-Intent-Failed" /> |
Ray Milkey | c345663 | 2015-08-24 17:06:29 -0700 | [diff] [blame] | 49 | |
Thomas Vachuska | 1c15287 | 2015-08-26 18:41:10 -0700 | [diff] [blame] | 50 | <step name="Host-Intent.Validate-Intent-Installed-Again" requires="Host-Intent.Link-1-Up" |
| 51 | exec="onos-check-intent ${OC1} h2h INSTALLED"/> |
Ray Milkey | c345663 | 2015-08-24 17:06:29 -0700 | [diff] [blame] | 52 | |
Ray Milkey | 279c5ff | 2017-05-11 10:30:40 -0700 | [diff] [blame] | 53 | <dependency name="Host-Intent.ExpectExceptionMarkEnd" |
| 54 | requires="~Host-Intent.Validate-Intent-Installed-Again"/> |
| 55 | |
Thomas Vachuska | 1c15287 | 2015-08-26 18:41:10 -0700 | [diff] [blame] | 56 | <dependency name="Host-Intent.Ping-4" |
| 57 | requires="~Host-Intent.Validate-Intent-Installed-Again" /> |
| 58 | |
| 59 | <step name="Host-Intent.Remove-Intent" requires="~Host-Intent.Net-Link-Down-Up" |
Ray Milkey | 481ec33 | 2018-03-09 13:47:23 -0800 | [diff] [blame] | 60 | exec="onos ${OC1} remove-intent -p org.onosproject.cli h2h"/> |
Thomas Vachuska | 33937c4 | 2015-07-15 17:40:32 -0700 | [diff] [blame] | 61 | </group> |
Ray Milkey | c345663 | 2015-08-24 17:06:29 -0700 | [diff] [blame] | 62 | </scenario> |