Thomas Vachuska | 33937c4 | 2015-07-15 17:40:32 -0700 | [diff] [blame] | 1 | <!-- |
| 2 | ~ Copyright 2015 Open Networking Laboratory |
| 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"> |
| 19 | <step name="Uninstall-Reactive-Forwarding" |
| 20 | exec="onos ${OC1} app deactivate org.onosproject.fwd org.onosproject.ifwd"/> |
| 21 | |
| 22 | <step name="Find-Host-1" requires="^" |
| 23 | exec="onos-mininet sendAndExpect h1 ping -c1 h4 --expect ."/> |
| 24 | <step name="Find-Host-2" requires="^" |
| 25 | exec="onos-mininet sendAndExpect h4 ping -c1 h1 --expect ."/> |
| 26 | |
| 27 | <step name="Create-Intent" requires="^" |
Ray Milkey | bba7138 | 2015-08-26 13:09:23 -0700 | [diff] [blame] | 28 | exec="onos-create-intent ${OC1} hostToHost host 00:00:00:00:00:01/-1 00:00:00:00:00:04/-1"/> |
| 29 | <step name="Validate-Intent-Installed" exec="onos-check-intent ${OC1} ${hostToHostId} INSTALLED" |
Ray Milkey | c345663 | 2015-08-24 17:06:29 -0700 | [diff] [blame] | 30 | requires="Create-Intent" /> |
Thomas Vachuska | 33937c4 | 2015-07-15 17:40:32 -0700 | [diff] [blame] | 31 | |
| 32 | <import file="${ONOS_SCENARIOS}/net-link-down-up.xml" namespace="Host-Intent"/> |
Ray Milkey | c345663 | 2015-08-24 17:06:29 -0700 | [diff] [blame] | 33 | <dependency name="Host-Intent.Net-Link-Down-Up" requires="Validate-Intent-Installed"/> |
Ray Milkey | bba7138 | 2015-08-26 13:09:23 -0700 | [diff] [blame] | 34 | |
| 35 | <step name="Validate-Intent-Installed-Still" exec="onos-check-intent ${OC1} ${hostToHostId} INSTALLED" |
Ray Milkey | c345663 | 2015-08-24 17:06:29 -0700 | [diff] [blame] | 36 | requires="Host-Intent.Link-1-Down" /> |
Thomas Vachuska | 33937c4 | 2015-07-15 17:40:32 -0700 | [diff] [blame] | 37 | |
Ray Milkey | bba7138 | 2015-08-26 13:09:23 -0700 | [diff] [blame] | 38 | <step name="Validate-Intent-Failed" exec="onos-check-intent ${OC1} ${hostToHostId} FAILED" |
Ray Milkey | c345663 | 2015-08-24 17:06:29 -0700 | [diff] [blame] | 39 | requires="Host-Intent.Link-2-Down" /> |
| 40 | |
Ray Milkey | bba7138 | 2015-08-26 13:09:23 -0700 | [diff] [blame] | 41 | <step name="Validate-Intent-Installed-Again" exec="onos-check-intent ${OC1} ${hostToHostId} INSTALLED" |
Ray Milkey | c345663 | 2015-08-24 17:06:29 -0700 | [diff] [blame] | 42 | requires="Host-Intent.Link-1-Up" /> |
| 43 | <dependency name="Host-Intent.Ping-4" requires="Validate-Intent-Installed-Again" /> |
| 44 | |
| 45 | <step name="Remove-Intent" requires="~Host-Intent.Net-Link-Down-Up" |
| 46 | exec="onos ${OC1} remove-intent -p"/> |
| 47 | |
| 48 | |
| 49 | |
Thomas Vachuska | 33937c4 | 2015-07-15 17:40:32 -0700 | [diff] [blame] | 50 | </group> |
Ray Milkey | c345663 | 2015-08-24 17:06:29 -0700 | [diff] [blame] | 51 | </scenario> |