blob: 72a7fb01cae389bab5a5378f8547f431e3194106 [file] [log] [blame]
Ray Milkeyc6987732015-08-25 11:05:28 -07001<!--
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 ~ Copyright 2015-present Open Networking Foundation
Ray Milkeyc6987732015-08-25 11:05:28 -07003 ~
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 -->
Thomas Vachuska1c152872015-08-26 18:41:10 -070016<scenario name="net-point-intent"
17 description="Network point to point intent connectivity test">
Ray Milkeyc6987732015-08-25 11:05:28 -070018 <!-- TODO: parametrize this via recipes -->
Thomas Vachuska1c152872015-08-26 18:41:10 -070019 <group name="P2P-Intent-Connectivity">
Ray Milkey955c4b82016-07-11 09:48:53 -070020 <step name="P2P-Intent.Find-Host-1"
Thomas Vachuska1c152872015-08-26 18:41:10 -070021 exec="onos-mininet sendAndExpect h1 ping -c1 -w1 h4 --expect ."/>
22 <step name="P2P-Intent.Find-Host-2" requires="^"
23 exec="onos-mininet sendAndExpect h4 ping -c1 -w1 h1 --expect ."/>
Ray Milkeyc6987732015-08-25 11:05:28 -070024
Thomas Vachuska1c152872015-08-26 18:41:10 -070025 <step name="P2P-Intent.Create-Intent-XY" requires="^"
26 exec="onos-create-intent ${OC1} xy point of:0000000000000001/1 of:0000000000000004/1"/>
27 <step name="P2P-Intent.Create-Intent-YX" requires="^"
28 exec="onos-create-intent ${OC1} yx point of:0000000000000004/1 of:0000000000000001/1"/>
Ray Milkeybba71382015-08-26 13:09:23 -070029
Thomas Vachuska1c152872015-08-26 18:41:10 -070030 <step name="P2P-Intent.Validate-Intent-XY-Installed" requires="^"
31 exec="onos-check-intent ${OC1} yx INSTALLED"/>
32 <step name="P2P-Intent.Validate-Intent-YX-Installed" requires="^"
33 exec="onos-check-intent ${OC1} xy INSTALLED"/>
Ray Milkeyc6987732015-08-25 11:05:28 -070034
Thomas Vachuska1c152872015-08-26 18:41:10 -070035 <import file="${ONOS_SCENARIOS}/net-link-down-up.xml" namespace="P2P-Intent"/>
Yuta HIGUCHIdf5eeb12017-05-05 21:19:02 -070036 <import file="${ONOS_SCENARIOS}/log-mark.xml" namespace="P2P-Intent"/>
Thomas Vachuska1c152872015-08-26 18:41:10 -070037 <dependency name="P2P-Intent.Net-Link-Down-Up"
38 requires="P2P-Intent.Validate-Intent-XY-Installed,
39 P2P-Intent.Validate-Intent-YX-Installed"/>
Ray Milkeyc6987732015-08-25 11:05:28 -070040
Thomas Vachuska1c152872015-08-26 18:41:10 -070041 <step name="P2P-Intent.Validate-Intent-XY-Installed-Still" requires="P2P-Intent.Link-1-Down"
42 exec="onos-check-intent ${OC1} xy INSTALLED"/>
43 <step name="P2P-Intent.Validate-Intent-YX-Installed-Still" requires="P2P-Intent.Link-1-Down"
44 exec="onos-check-intent ${OC1} yx INSTALLED"/>
Ray Milkeyc6987732015-08-25 11:05:28 -070045
Yuta HIGUCHIdf5eeb12017-05-05 21:19:02 -070046 <dependency name="P2P-Intent.ExpectExceptionMarkBegin"
Thomas Vachuska1c152872015-08-26 18:41:10 -070047 requires="~P2P-Intent.Validate-Intent-XY-Installed-Still,
48 ~P2P-Intent.Validate-Intent-YX-Installed-Still"/>
Ray Milkeyc6987732015-08-25 11:05:28 -070049
Yuta HIGUCHIdf5eeb12017-05-05 21:19:02 -070050 <dependency name="P2P-Intent.Link-2-Down"
51 requires="P2P-Intent.ExpectExceptionMarkBegin"/>
52
Thomas Vachuska1c152872015-08-26 18:41:10 -070053 <step name="P2P-Intent.Validate-Intent-XY-Failed" requires="P2P-Intent.Link-2-Down"
54 exec="onos-check-intent ${OC1} xy FAILED"/>
55 <step name="P2P-Intent.Validate-Intent-YX-Failed" requires="P2P-Intent.Link-2-Down"
56 exec="onos-check-intent ${OC1} yx FAILED"/>
57
Yuta HIGUCHIdf5eeb12017-05-05 21:19:02 -070058 <dependency name="P2P-Intent.Link-1-Up"
Ray Milkey279c5ff2017-05-11 10:30:40 -070059 requires="~P2P-Intent.Validate-Intent-XY-Failed, ~P2P-Intent.Validate-Intent-YX-Failed" />
Thomas Vachuska1c152872015-08-26 18:41:10 -070060
61 <step name="P2P-Intent.Validate-Intent-XY-Installed-Again" requires="P2P-Intent.Link-1-Up"
62 exec="onos-check-intent ${OC1} xy INSTALLED"/>
63 <step name="P2P-Intent.Validate-Intent-YX-Installed-Again" requires="P2P-Intent.Link-1-Up"
64 exec="onos-check-intent ${OC1} yx INSTALLED"/>
65
Ray Milkey279c5ff2017-05-11 10:30:40 -070066 <dependency name="P2P-Intent.ExpectExceptionMarkEnd"
Thomas Vachuska1c152872015-08-26 18:41:10 -070067 requires="~P2P-Intent.Validate-Intent-XY-Installed-Again,
68 ~P2P-Intent.Validate-Intent-YX-Installed-Again"/>
69
Ray Milkey279c5ff2017-05-11 10:30:40 -070070 <dependency name="P2P-Intent.Ping-4"
71 requires="~P2P-Intent.ExpectExceptionMarkEnd"/>
72
Thomas Vachuska1c152872015-08-26 18:41:10 -070073 <step name="P2P-Intent.Remove-Intent-XY" requires="~P2P-Intent.Net-Link-Down-Up"
Ray Milkey481ec332018-03-09 13:47:23 -080074 exec="onos ${OC1} remove-intent -p org.onosproject.cli xy"/>
Thomas Vachuska1c152872015-08-26 18:41:10 -070075 <step name="P2P-Intent.Remove-Intent-YX" requires="~P2P-Intent.Net-Link-Down-Up"
Ray Milkey481ec332018-03-09 13:47:23 -080076 exec="onos ${OC1} remove-intent -p org.onosproject.cli yx"/>
Ray Milkeyc6987732015-08-25 11:05:28 -070077 </group>
78</scenario>