Ray Milkey | 3bc0be1 | 2016-03-03 16:47:04 -0800 | [diff] [blame] | 1 | <!-- |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | ~ Copyright 2016-present Open Networking Foundation |
Ray Milkey | 3bc0be1 | 2016-03-03 16:47:04 -0800 | [diff] [blame] | 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-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 Milkey | 3bc0be1 | 2016-03-03 16:47:04 -0800 | [diff] [blame] | 20 | |
| 21 | <!-- Create a single point to three points intent --> |
Ray Milkey | 955c4b8 | 2016-07-11 09:48:53 -0700 | [diff] [blame] | 22 | <step name="S2M-Intent.Create-Intent-forward" |
Ray Milkey | 3bc0be1 | 2016-03-03 16:47:04 -0800 | [diff] [blame] | 23 | 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 Milkey | 9ce9e25 | 2016-05-09 08:20:51 -0700 | [diff] [blame] | 34 | <step name="S2M-Intent.Validate-Intent-forward-Installed" requires="^" |
Ray Milkey | 3bc0be1 | 2016-03-03 16:47:04 -0800 | [diff] [blame] | 35 | exec="onos-check-intent ${OC1} forward INSTALLED"/> |
Ray Milkey | 9ce9e25 | 2016-05-09 08:20:51 -0700 | [diff] [blame] | 36 | <step name="S2M-Intent.Validate-Intent-back1-Installed" requires="^" |
Ray Milkey | 3bc0be1 | 2016-03-03 16:47:04 -0800 | [diff] [blame] | 37 | exec="onos-check-intent ${OC1} back1 INSTALLED"/> |
Ray Milkey | 9ce9e25 | 2016-05-09 08:20:51 -0700 | [diff] [blame] | 38 | <step name="S2M-Intent.Validate-Intent-back2-Installed" requires="^" |
Ray Milkey | 3bc0be1 | 2016-03-03 16:47:04 -0800 | [diff] [blame] | 39 | exec="onos-check-intent ${OC1} back2 INSTALLED"/> |
Ray Milkey | 9ce9e25 | 2016-05-09 08:20:51 -0700 | [diff] [blame] | 40 | <step name="S2M-Intent.Validate-Intent-back3-Installed" requires="^" |
Ray Milkey | 3bc0be1 | 2016-03-03 16:47:04 -0800 | [diff] [blame] | 41 | 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 Milkey | 9ce9e25 | 2016-05-09 08:20:51 -0700 | [diff] [blame] | 45 | exec="onos-mininet sendAndExpect h17 ping -c1 h20 --expect \ 0% packet loss" requires="^" /> |
Ray Milkey | 3bc0be1 | 2016-03-03 16:47:04 -0800 | [diff] [blame] | 46 | <step name="S2M-Intent.Ping-1-back" |
Ray Milkey | 9ce9e25 | 2016-05-09 08:20:51 -0700 | [diff] [blame] | 47 | exec="onos-mininet sendAndExpect h20 ping -c1 h17 --expect \ 0% packet loss" requires="^" /> |
Ray Milkey | 3bc0be1 | 2016-03-03 16:47:04 -0800 | [diff] [blame] | 48 | |
| 49 | <!-- Check the connectivity of the 11 <-> 2 intent --> |
| 50 | <step name="S2M-Intent.Ping-2-forward" |
Ray Milkey | 9ce9e25 | 2016-05-09 08:20:51 -0700 | [diff] [blame] | 51 | exec="onos-mininet sendAndExpect h17 ping -c1 h2 --expect \ 0% packet loss" requires="^" /> |
Ray Milkey | 3bc0be1 | 2016-03-03 16:47:04 -0800 | [diff] [blame] | 52 | <step name="S2M-Intent.Ping-2-back" |
Ray Milkey | 9ce9e25 | 2016-05-09 08:20:51 -0700 | [diff] [blame] | 53 | exec="onos-mininet sendAndExpect h2 ping -c1 h17 --expect \ 0% packet loss" requires="^" /> |
Ray Milkey | 3bc0be1 | 2016-03-03 16:47:04 -0800 | [diff] [blame] | 54 | |
| 55 | <!-- Check the connectivity of the 11 <-> E intent --> |
| 56 | <step name="S2M-Intent.Ping-3-forward" |
Ray Milkey | 9ce9e25 | 2016-05-09 08:20:51 -0700 | [diff] [blame] | 57 | exec="onos-mininet sendAndExpect h17 ping -c1 h14 --expect \ 0% packet loss" requires="^" /> |
Ray Milkey | 3bc0be1 | 2016-03-03 16:47:04 -0800 | [diff] [blame] | 58 | <step name="S2M-Intent.Ping-3-back" |
Ray Milkey | 9ce9e25 | 2016-05-09 08:20:51 -0700 | [diff] [blame] | 59 | exec="onos-mininet sendAndExpect h14 ping -c1 h17 --expect \ 0% packet loss" requires="^" /> |
Ray Milkey | 3bc0be1 | 2016-03-03 16:47:04 -0800 | [diff] [blame] | 60 | |
| 61 | <!-- Clean up intents --> |
| 62 | <step name="S2M-Intent.Remove-Intent-forward" requires="~S2M-Intent.Ping-3-back" |
Ray Milkey | 481ec33 | 2018-03-09 13:47:23 -0800 | [diff] [blame] | 63 | exec="onos ${OC1} remove-intent -p org.onosproject.cli forward"/> |
Ray Milkey | 3bc0be1 | 2016-03-03 16:47:04 -0800 | [diff] [blame] | 64 | <step name="S2M-Intent.Remove-Intent-back1" requires="~S2M-Intent.Ping-3-back" |
Ray Milkey | 481ec33 | 2018-03-09 13:47:23 -0800 | [diff] [blame] | 65 | exec="onos ${OC1} remove-intent -p org.onosproject.cli back1"/> |
Ray Milkey | 3bc0be1 | 2016-03-03 16:47:04 -0800 | [diff] [blame] | 66 | <step name="S2M-Intent.Remove-Intent-back2" requires="~S2M-Intent.Ping-3-back" |
Ray Milkey | 481ec33 | 2018-03-09 13:47:23 -0800 | [diff] [blame] | 67 | exec="onos ${OC1} remove-intent -p org.onosproject.cli back2"/> |
Ray Milkey | 3bc0be1 | 2016-03-03 16:47:04 -0800 | [diff] [blame] | 68 | <step name="S2M-Intent.Remove-Intent-back3" requires="~S2M-Intent.Ping-3-back" |
Ray Milkey | 481ec33 | 2018-03-09 13:47:23 -0800 | [diff] [blame] | 69 | exec="onos ${OC1} remove-intent -p org.onosproject.cli back3"/> |
Ray Milkey | 3bc0be1 | 2016-03-03 16:47:04 -0800 | [diff] [blame] | 70 | </group> |
| 71 | </scenario> |