blob: e7fea6a5055b21997a743e3a6bd36d8d2dd781a9 [file] [log] [blame]
Ray Milkey3bc0be12016-03-03 16:47:04 -08001<!--
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 ~ Copyright 2016-present Open Networking Foundation
Ray Milkey3bc0be12016-03-03 16:47:04 -08003 ~
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-single-to-multi-intent"
17 description="Network single point to multi point intent connectivity test">
18 <!-- TODO: parametrize this via recipes -->
19 <group name="S2M-Intent-Connectivity">
Ray Milkey3bc0be12016-03-03 16:47:04 -080020
21 <!-- Create a single point to three points intent -->
Ray Milkey955c4b82016-07-11 09:48:53 -070022 <step name="S2M-Intent.Create-Intent-forward"
Ray Milkey3bc0be12016-03-03 16:47:04 -080023 exec="onos-create-intent ${OC1} forward single-to-multi of:0000000000000011/1 of:0000000000000014/1 of:0000000000000002/1 of:000000000000000E/1"/>
24
25 <!-- Create back links from the 3 points back to the source -->
26 <step name="S2M-Intent.Create-Intent-back1" requires="^"
27 exec="onos-create-intent ${OC1} back1 point of:0000000000000014/1 of:0000000000000011/1"/>
28 <step name="S2M-Intent.Create-Intent-back2" requires="^"
29 exec="onos-create-intent ${OC1} back2 point of:0000000000000002/1 of:0000000000000011/1"/>
30 <step name="S2M-Intent.Create-Intent-back3" requires="^"
31 exec="onos-create-intent ${OC1} back3 point of:000000000000000E/1 of:0000000000000011/1"/>
32
33 <!-- Make sure intents installed properly -->
Ray Milkey9ce9e252016-05-09 08:20:51 -070034 <step name="S2M-Intent.Validate-Intent-forward-Installed" requires="^"
Ray Milkey3bc0be12016-03-03 16:47:04 -080035 exec="onos-check-intent ${OC1} forward INSTALLED"/>
Ray Milkey9ce9e252016-05-09 08:20:51 -070036 <step name="S2M-Intent.Validate-Intent-back1-Installed" requires="^"
Ray Milkey3bc0be12016-03-03 16:47:04 -080037 exec="onos-check-intent ${OC1} back1 INSTALLED"/>
Ray Milkey9ce9e252016-05-09 08:20:51 -070038 <step name="S2M-Intent.Validate-Intent-back2-Installed" requires="^"
Ray Milkey3bc0be12016-03-03 16:47:04 -080039 exec="onos-check-intent ${OC1} back2 INSTALLED"/>
Ray Milkey9ce9e252016-05-09 08:20:51 -070040 <step name="S2M-Intent.Validate-Intent-back3-Installed" requires="^"
Ray Milkey3bc0be12016-03-03 16:47:04 -080041 exec="onos-check-intent ${OC1} back3 INSTALLED"/>
42
43 <!-- Check the connectivity of the 11 <-> 14 intent -->
44 <step name="S2M-Intent.Ping-1-forward"
Ray Milkey9ce9e252016-05-09 08:20:51 -070045 exec="onos-mininet sendAndExpect h17 ping -c1 h20 --expect \ 0% packet loss" requires="^" />
Ray Milkey3bc0be12016-03-03 16:47:04 -080046 <step name="S2M-Intent.Ping-1-back"
Ray Milkey9ce9e252016-05-09 08:20:51 -070047 exec="onos-mininet sendAndExpect h20 ping -c1 h17 --expect \ 0% packet loss" requires="^" />
Ray Milkey3bc0be12016-03-03 16:47:04 -080048
49 <!-- Check the connectivity of the 11 <-> 2 intent -->
50 <step name="S2M-Intent.Ping-2-forward"
Ray Milkey9ce9e252016-05-09 08:20:51 -070051 exec="onos-mininet sendAndExpect h17 ping -c1 h2 --expect \ 0% packet loss" requires="^" />
Ray Milkey3bc0be12016-03-03 16:47:04 -080052 <step name="S2M-Intent.Ping-2-back"
Ray Milkey9ce9e252016-05-09 08:20:51 -070053 exec="onos-mininet sendAndExpect h2 ping -c1 h17 --expect \ 0% packet loss" requires="^" />
Ray Milkey3bc0be12016-03-03 16:47:04 -080054
55 <!-- Check the connectivity of the 11 <-> E intent -->
56 <step name="S2M-Intent.Ping-3-forward"
Ray Milkey9ce9e252016-05-09 08:20:51 -070057 exec="onos-mininet sendAndExpect h17 ping -c1 h14 --expect \ 0% packet loss" requires="^" />
Ray Milkey3bc0be12016-03-03 16:47:04 -080058 <step name="S2M-Intent.Ping-3-back"
Ray Milkey9ce9e252016-05-09 08:20:51 -070059 exec="onos-mininet sendAndExpect h14 ping -c1 h17 --expect \ 0% packet loss" requires="^" />
Ray Milkey3bc0be12016-03-03 16:47:04 -080060
61 <!-- Clean up intents -->
62 <step name="S2M-Intent.Remove-Intent-forward" requires="~S2M-Intent.Ping-3-back"
Jonathan Hart381f8d82016-08-31 10:24:12 -070063 exec="onos -f ${OC1} remove-intent -p org.onosproject.cli forward"/>
Ray Milkey3bc0be12016-03-03 16:47:04 -080064 <step name="S2M-Intent.Remove-Intent-back1" requires="~S2M-Intent.Ping-3-back"
Jonathan Hart381f8d82016-08-31 10:24:12 -070065 exec="onos -f ${OC1} remove-intent -p org.onosproject.cli back1"/>
Ray Milkey3bc0be12016-03-03 16:47:04 -080066 <step name="S2M-Intent.Remove-Intent-back2" requires="~S2M-Intent.Ping-3-back"
Jonathan Hart381f8d82016-08-31 10:24:12 -070067 exec="onos -f ${OC1} remove-intent -p org.onosproject.cli back2"/>
Ray Milkey3bc0be12016-03-03 16:47:04 -080068 <step name="S2M-Intent.Remove-Intent-back3" requires="~S2M-Intent.Ping-3-back"
Jonathan Hart381f8d82016-08-31 10:24:12 -070069 exec="onos -f ${OC1} remove-intent -p org.onosproject.cli back3"/>
Ray Milkey3bc0be12016-03-03 16:47:04 -080070 </group>
71</scenario>