Ray Milkey | c698773 | 2015-08-25 11:05:28 -0700 | [diff] [blame] | 1 | <!-- |
Brian O'Connor | 5ab426f | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 2 | ~ Copyright 2015-present Open Networking Laboratory |
Ray Milkey | c698773 | 2015-08-25 11:05:28 -0700 | [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 | --> |
Thomas Vachuska | 1c15287 | 2015-08-26 18:41:10 -0700 | [diff] [blame] | 16 | <scenario name="net-point-intent" |
| 17 | description="Network point to point intent connectivity test"> |
Ray Milkey | c698773 | 2015-08-25 11:05:28 -0700 | [diff] [blame] | 18 | <!-- TODO: parametrize this via recipes --> |
Thomas Vachuska | 1c15287 | 2015-08-26 18:41:10 -0700 | [diff] [blame] | 19 | <group name="P2P-Intent-Connectivity"> |
| 20 | <step name="P2P-Intent.Uninstall-Reactive-Forwarding" |
Ray Milkey | c698773 | 2015-08-25 11:05:28 -0700 | [diff] [blame] | 21 | exec="onos ${OC1} app deactivate org.onosproject.fwd org.onosproject.ifwd"/> |
Thomas Vachuska | 1c15287 | 2015-08-26 18:41:10 -0700 | [diff] [blame] | 22 | <step name="P2P-Intent.Check-Apps" requires="^" |
| 23 | exec="onos-check-apps ${OC1} fwd,ifwd excludes"/> |
Ray Milkey | c698773 | 2015-08-25 11:05:28 -0700 | [diff] [blame] | 24 | |
Thomas Vachuska | 1c15287 | 2015-08-26 18:41:10 -0700 | [diff] [blame] | 25 | <step name="P2P-Intent.Find-Host-1" requires="^" |
| 26 | exec="onos-mininet sendAndExpect h1 ping -c1 -w1 h4 --expect ."/> |
| 27 | <step name="P2P-Intent.Find-Host-2" requires="^" |
| 28 | exec="onos-mininet sendAndExpect h4 ping -c1 -w1 h1 --expect ."/> |
Ray Milkey | c698773 | 2015-08-25 11:05:28 -0700 | [diff] [blame] | 29 | |
Thomas Vachuska | 1c15287 | 2015-08-26 18:41:10 -0700 | [diff] [blame] | 30 | <step name="P2P-Intent.Create-Intent-XY" requires="^" |
| 31 | exec="onos-create-intent ${OC1} xy point of:0000000000000001/1 of:0000000000000004/1"/> |
| 32 | <step name="P2P-Intent.Create-Intent-YX" requires="^" |
| 33 | exec="onos-create-intent ${OC1} yx point of:0000000000000004/1 of:0000000000000001/1"/> |
Ray Milkey | bba7138 | 2015-08-26 13:09:23 -0700 | [diff] [blame] | 34 | |
Thomas Vachuska | 1c15287 | 2015-08-26 18:41:10 -0700 | [diff] [blame] | 35 | <step name="P2P-Intent.Validate-Intent-XY-Installed" requires="^" |
| 36 | exec="onos-check-intent ${OC1} yx INSTALLED"/> |
| 37 | <step name="P2P-Intent.Validate-Intent-YX-Installed" requires="^" |
| 38 | exec="onos-check-intent ${OC1} xy INSTALLED"/> |
Ray Milkey | c698773 | 2015-08-25 11:05:28 -0700 | [diff] [blame] | 39 | |
Thomas Vachuska | 1c15287 | 2015-08-26 18:41:10 -0700 | [diff] [blame] | 40 | <import file="${ONOS_SCENARIOS}/net-link-down-up.xml" namespace="P2P-Intent"/> |
| 41 | <dependency name="P2P-Intent.Net-Link-Down-Up" |
| 42 | requires="P2P-Intent.Validate-Intent-XY-Installed, |
| 43 | P2P-Intent.Validate-Intent-YX-Installed"/> |
Ray Milkey | c698773 | 2015-08-25 11:05:28 -0700 | [diff] [blame] | 44 | |
Thomas Vachuska | 1c15287 | 2015-08-26 18:41:10 -0700 | [diff] [blame] | 45 | <step name="P2P-Intent.Validate-Intent-XY-Installed-Still" requires="P2P-Intent.Link-1-Down" |
| 46 | exec="onos-check-intent ${OC1} xy INSTALLED"/> |
| 47 | <step name="P2P-Intent.Validate-Intent-YX-Installed-Still" requires="P2P-Intent.Link-1-Down" |
| 48 | exec="onos-check-intent ${OC1} yx INSTALLED"/> |
Ray Milkey | c698773 | 2015-08-25 11:05:28 -0700 | [diff] [blame] | 49 | |
Thomas Vachuska | 1c15287 | 2015-08-26 18:41:10 -0700 | [diff] [blame] | 50 | <dependency name="P2P-Intent.Link-2-Down" |
| 51 | requires="~P2P-Intent.Validate-Intent-XY-Installed-Still, |
| 52 | ~P2P-Intent.Validate-Intent-YX-Installed-Still"/> |
Ray Milkey | c698773 | 2015-08-25 11:05:28 -0700 | [diff] [blame] | 53 | |
Thomas Vachuska | 1c15287 | 2015-08-26 18:41:10 -0700 | [diff] [blame] | 54 | <step name="P2P-Intent.Validate-Intent-XY-Failed" requires="P2P-Intent.Link-2-Down" |
| 55 | exec="onos-check-intent ${OC1} xy FAILED"/> |
| 56 | <step name="P2P-Intent.Validate-Intent-YX-Failed" requires="P2P-Intent.Link-2-Down" |
| 57 | exec="onos-check-intent ${OC1} yx FAILED"/> |
| 58 | |
| 59 | <dependency name="P2P-Intent.Link-1-Up" |
| 60 | requires="~P2P-Intent.Validate-Intent-XY-Failed, |
| 61 | ~P2P-Intent.Validate-Intent-YX-Failed" /> |
| 62 | |
| 63 | <step name="P2P-Intent.Validate-Intent-XY-Installed-Again" requires="P2P-Intent.Link-1-Up" |
| 64 | exec="onos-check-intent ${OC1} xy INSTALLED"/> |
| 65 | <step name="P2P-Intent.Validate-Intent-YX-Installed-Again" requires="P2P-Intent.Link-1-Up" |
| 66 | exec="onos-check-intent ${OC1} yx INSTALLED"/> |
| 67 | |
| 68 | <dependency name="P2P-Intent.Ping-4" |
| 69 | requires="~P2P-Intent.Validate-Intent-XY-Installed-Again, |
| 70 | ~P2P-Intent.Validate-Intent-YX-Installed-Again"/> |
| 71 | |
| 72 | <step name="P2P-Intent.Remove-Intent-XY" requires="~P2P-Intent.Net-Link-Down-Up" |
| 73 | exec="onos ${OC1} remove-intent -p org.onosproject.cli xy"/> |
| 74 | <step name="P2P-Intent.Remove-Intent-YX" requires="~P2P-Intent.Net-Link-Down-Up" |
| 75 | exec="onos ${OC1} remove-intent -p org.onosproject.cli yx"/> |
Ray Milkey | c698773 | 2015-08-25 11:05:28 -0700 | [diff] [blame] | 76 | </group> |
| 77 | </scenario> |