Ray Milkey | c698773 | 2015-08-25 11:05:28 -0700 | [diff] [blame] | 1 | <!-- |
| 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 Milkey | bba7138 | 2015-08-26 13:09:23 -0700 | [diff] [blame] | 28 | exec="onos-create-intent ${OC1} oneToFour point of:0000000000000001/1 of:0000000000000004/1"/> |
Ray Milkey | c698773 | 2015-08-25 11:05:28 -0700 | [diff] [blame] | 29 | <step name="P2P-Create-Intent-4-To-1" requires="^" |
Ray Milkey | bba7138 | 2015-08-26 13:09:23 -0700 | [diff] [blame] | 30 | 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 Milkey | c698773 | 2015-08-25 11:05:28 -0700 | [diff] [blame] | 36 | |
| 37 | <import file="${ONOS_SCENARIOS}/net-link-down-up.xml" namespace="Point-To-Point-Intent"/> |
Ray Milkey | bba7138 | 2015-08-26 13:09:23 -0700 | [diff] [blame] | 38 | <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 Milkey | c698773 | 2015-08-25 11:05:28 -0700 | [diff] [blame] | 40 | requires="Point-To-Point-Intent.Link-1-Down" /> |
| 41 | |
Ray Milkey | bba7138 | 2015-08-26 13:09:23 -0700 | [diff] [blame] | 42 | <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 Milkey | c698773 | 2015-08-25 11:05:28 -0700 | [diff] [blame] | 45 | requires="Point-To-Point-Intent.Link-2-Down" /> |
| 46 | |
Ray Milkey | bba7138 | 2015-08-26 13:09:23 -0700 | [diff] [blame] | 47 | <step name="P2P-Validate-Intent-Installed-Again" exec="onos-check-intent ${OC1} ${fourToOneId} INSTALLED" |
Ray Milkey | c698773 | 2015-08-25 11:05:28 -0700 | [diff] [blame] | 48 | 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 Milkey | bba7138 | 2015-08-26 13:09:23 -0700 | [diff] [blame] | 51 | <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 Milkey | c698773 | 2015-08-25 11:05:28 -0700 | [diff] [blame] | 55 | </group> |
| 56 | </scenario> |