blob: 4fd260026383db192eabdc3e0ed1ce358b4d1fd1 [file] [log] [blame]
Ray Milkey5557a502016-03-04 10:04:59 -08001<!--
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 ~ Copyright 2016-present Open Networking Laboratory
Ray Milkey5557a502016-03-04 10:04:59 -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-multi-to-single-intent"
17 description="Network single point to multi point intent connectivity test">
18 <!-- TODO: parametrize this via recipes -->
19 <group name="M2S-Intent-Connectivity">
Ray Milkey5557a502016-03-04 10:04:59 -080020
21 <!-- Create a single point to three points intent -->
Ray Milkey955c4b82016-07-11 09:48:53 -070022 <step name="M2S-Intent.Create-Intent-forward"
Ray Milkey5557a502016-03-04 10:04:59 -080023 exec="onos-create-intent ${OC1} forward multi-to-single of:0000000000000014/1 of:0000000000000002/1 of:000000000000000E/1 of:0000000000000011/1"/>
24
25 <!-- Create back links from the 3 points back to the source using a single to multi intent -->
26 <step name="M2S-Intent.Create-Intent-back" requires="^"
27 exec="onos-create-intent ${OC1} back single-to-multi of:0000000000000011/1 of:0000000000000014/1 of:0000000000000002/1 of:000000000000000E/1"/>
28
29 <!-- Make sure intents installed properly -->
Ray Milkey9ce9e252016-05-09 08:20:51 -070030 <step name="M2S-Intent.Validate-Intent-forward-Installed" requires="^"
Ray Milkey5557a502016-03-04 10:04:59 -080031 exec="onos-check-intent ${OC1} forward INSTALLED"/>
Ray Milkey9ce9e252016-05-09 08:20:51 -070032 <step name="M2S-Intent.Validate-Intent-back1-Installed" requires="^"
Ray Milkey5557a502016-03-04 10:04:59 -080033 exec="onos-check-intent ${OC1} back INSTALLED"/>
34
35 <!-- Check the connectivity of the 11 <-> 14 intent -->
36 <step name="M2S-Intent.Ping-1-forward"
Ray Milkey9ce9e252016-05-09 08:20:51 -070037 exec="onos-mininet sendAndExpect h17 ping -c1 h20 --expect \ 0% packet loss" requires="^" />
Ray Milkey5557a502016-03-04 10:04:59 -080038 <step name="M2S-Intent.Ping-1-back"
Ray Milkey9ce9e252016-05-09 08:20:51 -070039 exec="onos-mininet sendAndExpect h20 ping -c1 h17 --expect \ 0% packet loss" requires="^" />
Ray Milkey5557a502016-03-04 10:04:59 -080040
41 <!-- Check the connectivity of the 11 <-> 2 intent -->
42 <step name="M2S-Intent.Ping-2-forward"
Ray Milkey9ce9e252016-05-09 08:20:51 -070043 exec="onos-mininet sendAndExpect h17 ping -c1 h2 --expect \ 0% packet loss" requires="^" />
Ray Milkey5557a502016-03-04 10:04:59 -080044 <step name="M2S-Intent.Ping-2-back"
Ray Milkey9ce9e252016-05-09 08:20:51 -070045 exec="onos-mininet sendAndExpect h2 ping -c1 h17 --expect \ 0% packet loss" requires="^" />
Ray Milkey5557a502016-03-04 10:04:59 -080046
47 <!-- Check the connectivity of the 11 <-> E intent -->
48 <step name="M2S-Intent.Ping-3-forward"
Ray Milkey9ce9e252016-05-09 08:20:51 -070049 exec="onos-mininet sendAndExpect h17 ping -c1 h14 --expect \ 0% packet loss" requires="^" />
Ray Milkey5557a502016-03-04 10:04:59 -080050 <step name="M2S-Intent.Ping-3-back"
Ray Milkey9ce9e252016-05-09 08:20:51 -070051 exec="onos-mininet sendAndExpect h14 ping -c1 h17 --expect \ 0% packet loss" requires="^" />
Ray Milkey5557a502016-03-04 10:04:59 -080052
53 <!-- Clean up intents -->
54 <step name="M2S-Intent.Remove-Intent-forward" requires="~M2S-Intent.Ping-3-back"
55 exec="onos ${OC1} remove-intent -p org.onosproject.cli forward"/>
56 <step name="M2S-Intent.Remove-Intent-back" requires="~M2S-Intent.Ping-3-back"
57 exec="onos ${OC1} remove-intent -p org.onosproject.cli back"/>
58 </group>
59</scenario>