blob: 125f491b202acf57cbb1f6739c2956e106a9048a [file] [log] [blame]
Ray Milkeyc6987732015-08-25 11:05:28 -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-point-intent" description="Network point to point intent connectivity test">
17 <!-- TODO: parametrize this via recipes -->
18 <group name="Point-To-Point-Intent-Connectivity">
19 <step name="P2P-Uninstall-Reactive-Forwarding"
20 exec="onos ${OC1} app deactivate org.onosproject.fwd org.onosproject.ifwd"/>
21
22 <step name="P2P-Find-Host-1" requires="^"
23 exec="onos-mininet sendAndExpect h1 ping -c1 h4 --expect ."/>
24 <step name="P2PFind-Host-2" requires="^"
25 exec="onos-mininet sendAndExpect h4 ping -c1 h1 --expect ."/>
26
27 <step name="P2P-Create-Intent-1-To-4" requires="^"
Ray Milkeybba71382015-08-26 13:09:23 -070028 exec="onos-create-intent ${OC1} oneToFour point of:0000000000000001/1 of:0000000000000004/1"/>
Ray Milkeyc6987732015-08-25 11:05:28 -070029 <step name="P2P-Create-Intent-4-To-1" requires="^"
Ray Milkeybba71382015-08-26 13:09:23 -070030 exec="onos-create-intent ${OC1} fourToOne point of:0000000000000004/1 of:0000000000000001/1"/>
31
32 <step name="P2P-Validate-Point-Intents-Installed1" exec="onos-check-intent ${OC1} ${fourToOneId} INSTALLED"
33 requires="^" />
34 <step name="P2P-Validate-Point-Intents-Installed2" exec="onos-check-intent ${OC1} ${oneToFourId} INSTALLED"
35 requires="^" />
Ray Milkeyc6987732015-08-25 11:05:28 -070036
37 <import file="${ONOS_SCENARIOS}/net-link-down-up.xml" namespace="Point-To-Point-Intent"/>
Ray Milkeybba71382015-08-26 13:09:23 -070038 <dependency name="Point-To-Point-Intent.Net-Link-Down-Up" requires="P2P-Validate-Point-Intents-Installed2"/>
39 <step name="P2P-Validate-Intent-Installed-Still" exec="onos-check-intent ${OC1} ${fourToOneId} INSTALLED"
Ray Milkeyc6987732015-08-25 11:05:28 -070040 requires="Point-To-Point-Intent.Link-1-Down" />
41
Ray Milkeybba71382015-08-26 13:09:23 -070042 <step name="P2P-Validate-Intent-Failed" exec="onos-check-intent ${OC1} ${fourToOneId} FAILED"
43 requires="Point-To-Point-Intent.Link-2-Down" />
44 <step name="P2P-Validate-Intent-Failed2" exec="onos-check-intent ${OC1} ${oneToFourId} FAILED"
Ray Milkeyc6987732015-08-25 11:05:28 -070045 requires="Point-To-Point-Intent.Link-2-Down" />
46
Ray Milkeybba71382015-08-26 13:09:23 -070047 <step name="P2P-Validate-Intent-Installed-Again" exec="onos-check-intent ${OC1} ${fourToOneId} INSTALLED"
Ray Milkeyc6987732015-08-25 11:05:28 -070048 requires="Point-To-Point-Intent.Link-1-Up" />
49 <dependency name="Point-To-Point-Intent.Ping-4" requires="P2P-Validate-Intent-Installed-Again" />
50
Ray Milkeybba71382015-08-26 13:09:23 -070051 <step name="P2P-Remove-Intent-4-to-1" requires="~Point-To-Point-Intent.Net-Link-Down-Up"
52 exec="onos ${OC1} remove-intent -p org.onosproject.cli ${fourToOneId}"/>
53 <step name="P2P-Remove-Intent-1-to-4" requires="^"
54 exec="onos ${OC1} remove-intent -p org.onosproject.cli ${oneToFourId}"/>
Ray Milkeyc6987732015-08-25 11:05:28 -070055 </group>
56</scenario>