blob: fbf8c4abc3c4959c04cd6c32afce7a3c9404166a [file] [log] [blame]
Thomas Vachuska33937c42015-07-15 17:40:32 -07001<!--
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">
Thomas Vachuska1c152872015-08-26 18:41:10 -070019 <step name="Host-Intent.Uninstall-Reactive-Forwarding"
Thomas Vachuska33937c42015-07-15 17:40:32 -070020 exec="onos ${OC1} app deactivate org.onosproject.fwd org.onosproject.ifwd"/>
Thomas Vachuska1c152872015-08-26 18:41:10 -070021 <step name="Host-Intent.Check-Apps" requires="^"
22 exec="onos-check-apps ${OC1} fwd,ifwd excludes"/>
Thomas Vachuska33937c42015-07-15 17:40:32 -070023
Thomas Vachuska1c152872015-08-26 18:41:10 -070024 <step name="Host-Intent.Find-Host-1" requires="^"
25 exec="onos-mininet sendAndExpect h1 ping -c1 -w1 h4 --expect ."/>
26 <step name="Host-Intent.Find-Host-2" requires="^"
27 exec="onos-mininet sendAndExpect h4 ping -c1 -w1 h1 --expect ."/>
Thomas Vachuska33937c42015-07-15 17:40:32 -070028
Thomas Vachuska1c152872015-08-26 18:41:10 -070029 <step name="Host-Intent.Create-Intent" requires="^"
30 exec="onos-create-intent ${OC1} h2h host 00:00:00:00:00:01/-1 00:00:00:00:00:04/-1"/>
31 <step name="Host-Intent.Validate-Intent-Installed" requires="Host-Intent.Create-Intent"
32 exec="onos-check-intent ${OC1} h2h INSTALLED"/>
Thomas Vachuska33937c42015-07-15 17:40:32 -070033
34 <import file="${ONOS_SCENARIOS}/net-link-down-up.xml" namespace="Host-Intent"/>
Thomas Vachuska1c152872015-08-26 18:41:10 -070035 <dependency name="Host-Intent.Net-Link-Down-Up"
36 requires="Host-Intent.Validate-Intent-Installed"/>
Ray Milkeybba71382015-08-26 13:09:23 -070037
Thomas Vachuska1c152872015-08-26 18:41:10 -070038 <step name="Host-Intent.Validate-Intent-Installed-Still" requires="Host-Intent.Link-1-Down"
39 exec="onos-check-intent ${OC1} h2h INSTALLED"/>
Thomas Vachuska33937c42015-07-15 17:40:32 -070040
Thomas Vachuska1c152872015-08-26 18:41:10 -070041 <dependency name="Host-Intent.Link-2-Down"
42 requires="~Host-Intent.Validate-Intent-Installed-Still" />
Ray Milkeyc3456632015-08-24 17:06:29 -070043
Thomas Vachuska1c152872015-08-26 18:41:10 -070044 <step name="Host-Intent.Validate-Intent-Failed" requires="Host-Intent.Link-2-Down"
45 exec="onos-check-intent ${OC1} h2h FAILED"/>
Ray Milkeyc3456632015-08-24 17:06:29 -070046
Thomas Vachuska1c152872015-08-26 18:41:10 -070047 <dependency name="Host-Intent.Link-1-Up"
48 requires="~Host-Intent.Validate-Intent-Failed" />
Ray Milkeyc3456632015-08-24 17:06:29 -070049
Thomas Vachuska1c152872015-08-26 18:41:10 -070050 <step name="Host-Intent.Validate-Intent-Installed-Again" requires="Host-Intent.Link-1-Up"
51 exec="onos-check-intent ${OC1} h2h INSTALLED"/>
Ray Milkeyc3456632015-08-24 17:06:29 -070052
Thomas Vachuska1c152872015-08-26 18:41:10 -070053 <dependency name="Host-Intent.Ping-4"
54 requires="~Host-Intent.Validate-Intent-Installed-Again" />
55
56 <step name="Host-Intent.Remove-Intent" requires="~Host-Intent.Net-Link-Down-Up"
57 exec="onos ${OC1} remove-intent -p org.onosproject.cli h2h"/>
Thomas Vachuska33937c42015-07-15 17:40:32 -070058 </group>
Ray Milkeyc3456632015-08-24 17:06:29 -070059</scenario>