Ray Milkey | e082777 | 2015-09-11 16:49:21 -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 | e082777 | 2015-09-11 16:49:21 -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 | --> |
| 16 | <scenario name="net-topo" |
| 17 | description="Network topology test"> |
| 18 | <!-- TODO: parametrize this via recipes --> |
Thomas Vachuska | e5ab5f7 | 2015-10-13 11:55:52 -0700 | [diff] [blame] | 19 | <group name="Net-Topo"> |
Ray Milkey | e082777 | 2015-09-11 16:49:21 -0700 | [diff] [blame] | 20 | |
| 21 | <!-- Verify the overall topology using the REST API --> |
Thomas Vachuska | e5ab5f7 | 2015-10-13 11:55:52 -0700 | [diff] [blame] | 22 | <step name="Net-Topo.Query-Topo" |
Ray Milkey | e082777 | 2015-09-11 16:49:21 -0700 | [diff] [blame] | 23 | exec="query-topo.py ${OC1} topo"/> |
Thomas Vachuska | e5ab5f7 | 2015-10-13 11:55:52 -0700 | [diff] [blame] | 24 | <step name="Net-Topo.Verify-Topo-Devices" requires="Net-Topo.Query-Topo" |
Ray Milkey | e082777 | 2015-09-11 16:49:21 -0700 | [diff] [blame] | 25 | exec="test ${topoDevices} == 25"/> |
Thomas Vachuska | e5ab5f7 | 2015-10-13 11:55:52 -0700 | [diff] [blame] | 26 | <step name="Net-Topo.Verify-Topo-Links" requires="Net-Topo.Query-Topo" |
Ray Milkey | e082777 | 2015-09-11 16:49:21 -0700 | [diff] [blame] | 27 | exec="test ${topoLinks} == 140"/> |
Thomas Vachuska | e5ab5f7 | 2015-10-13 11:55:52 -0700 | [diff] [blame] | 28 | <step name="Net-Topo.Verify-Topo-Clusters" requires="Net-Topo.Query-Topo" |
Ray Milkey | e082777 | 2015-09-11 16:49:21 -0700 | [diff] [blame] | 29 | exec="test ${topoClusters} == 1"/> |
| 30 | |
| 31 | <!-- Verify the cluster topology using the REST API --> |
Thomas Vachuska | e5ab5f7 | 2015-10-13 11:55:52 -0700 | [diff] [blame] | 32 | <step name="Net-Topo.Query-Cluster0" |
Ray Milkey | e082777 | 2015-09-11 16:49:21 -0700 | [diff] [blame] | 33 | exec="query-cluster.py ${OC1} clusterTopo0 0"/> |
Thomas Vachuska | e5ab5f7 | 2015-10-13 11:55:52 -0700 | [diff] [blame] | 34 | <step name="Net-Topo.Verify-Cluster0-Id" requires="Net-Topo.Query-Cluster0" |
Ray Milkey | e082777 | 2015-09-11 16:49:21 -0700 | [diff] [blame] | 35 | exec="test ${clusterTopo0Id} == 0"/> |
Thomas Vachuska | e5ab5f7 | 2015-10-13 11:55:52 -0700 | [diff] [blame] | 36 | <step name="Net-Topo.Verify-Cluster0-DeviceCount" requires="Net-Topo.Query-Cluster0" |
Ray Milkey | e082777 | 2015-09-11 16:49:21 -0700 | [diff] [blame] | 37 | exec="test ${clusterTopo0DeviceCount} == 25"/> |
Thomas Vachuska | e5ab5f7 | 2015-10-13 11:55:52 -0700 | [diff] [blame] | 38 | <step name="Net-Topo.Verify-Cluster0-LinkCount" requires="Net-Topo.Query-Cluster0" |
Ray Milkey | e082777 | 2015-09-11 16:49:21 -0700 | [diff] [blame] | 39 | exec="test ${clusterTopo0LinkCount} == 140"/> |
Thomas Vachuska | e5ab5f7 | 2015-10-13 11:55:52 -0700 | [diff] [blame] | 40 | <step name="Net-Topo.Verify-Cluster0-Root" requires="Net-Topo.Query-Cluster0" |
Ray Milkey | 1259523 | 2016-05-18 11:06:01 -0700 | [diff] [blame] | 41 | exec="echo '${clusterTopo0Root}' | egrep -e 'of:000000000000000[0-9a-f]'"/> |
Ray Milkey | e082777 | 2015-09-11 16:49:21 -0700 | [diff] [blame] | 42 | |
| 43 | <!-- Verify the list of devices for the cluster --> |
Thomas Vachuska | e5ab5f7 | 2015-10-13 11:55:52 -0700 | [diff] [blame] | 44 | <step name="Net-Topo.Verify-Cluster0-Devices" |
Ray Milkey | e082777 | 2015-09-11 16:49:21 -0700 | [diff] [blame] | 45 | exec="verify-topo-devices.py ${OC1} 0 0 24"/> |
| 46 | |
| 47 | <!-- Spot check some known links in the topology --> |
Thomas Vachuska | e5ab5f7 | 2015-10-13 11:55:52 -0700 | [diff] [blame] | 48 | <step name="Net-Topo.Verify-Cluster0-Link1" |
Ray Milkey | e082777 | 2015-09-11 16:49:21 -0700 | [diff] [blame] | 49 | exec="find-link-in-cluster.py ${OC1} link1 0 140 of:000000000000000f 8 of:0000000000000015 3"/> |
Thomas Vachuska | e5ab5f7 | 2015-10-13 11:55:52 -0700 | [diff] [blame] | 50 | <step name="Net-Topo.Verify-Cluster0-Link2" |
Ray Milkey | e082777 | 2015-09-11 16:49:21 -0700 | [diff] [blame] | 51 | exec="find-link-in-cluster.py ${OC1} link2 0 140 of:0000000000000008 3 of:0000000000000005 4"/> |
Thomas Vachuska | e5ab5f7 | 2015-10-13 11:55:52 -0700 | [diff] [blame] | 52 | <step name="Net-Topo.Verify-Cluster0-Link3" |
Ray Milkey | e082777 | 2015-09-11 16:49:21 -0700 | [diff] [blame] | 53 | exec="find-link-in-cluster.py ${OC1} link3 0 140 of:0000000000000011 2 of:0000000000000002 9"/> |
Thomas Vachuska | e5ab5f7 | 2015-10-13 11:55:52 -0700 | [diff] [blame] | 54 | <step name="Net-Topo.Verify-Cluster0-Link4" |
Ray Milkey | e082777 | 2015-09-11 16:49:21 -0700 | [diff] [blame] | 55 | exec="find-link-in-cluster.py ${OC1} link4 0 140 of:000000000000000f 3 of:000000000000000d 10"/> |
Thomas Vachuska | e5ab5f7 | 2015-10-13 11:55:52 -0700 | [diff] [blame] | 56 | <step name="Net-Topo.Verify-Cluster0-Link5" |
Ray Milkey | e082777 | 2015-09-11 16:49:21 -0700 | [diff] [blame] | 57 | exec="find-link-in-cluster.py ${OC1} link5 0 140 of:000000000000000d 13 of:0000000000000010 6"/> |
| 58 | |
| 59 | <!-- Verify the topology infrastructure query --> |
Thomas Vachuska | e5ab5f7 | 2015-10-13 11:55:52 -0700 | [diff] [blame] | 60 | <step name="Net-Topo.Query-Cluster0-Infra1" |
Ray Milkey | e082777 | 2015-09-11 16:49:21 -0700 | [diff] [blame] | 61 | exec="find-topo-infrastructure.py ${OC1} infra1 of:000000000000000f:8"/> |
Thomas Vachuska | e5ab5f7 | 2015-10-13 11:55:52 -0700 | [diff] [blame] | 62 | <step name="Net-Topo.Verify-Cluster0-Infra1" requires="Net-Topo.Query-Cluster0-Infra1" |
Ray Milkey | e082777 | 2015-09-11 16:49:21 -0700 | [diff] [blame] | 63 | exec="test '${infra1Infrastructure}' == 'True'"/> |
| 64 | |
Thomas Vachuska | e5ab5f7 | 2015-10-13 11:55:52 -0700 | [diff] [blame] | 65 | <step name="Net-Topo.Query-Cluster0-Infra2" |
Ray Milkey | e082777 | 2015-09-11 16:49:21 -0700 | [diff] [blame] | 66 | exec="find-topo-infrastructure.py ${OC1} infra2 of:000000000000000d:8"/> |
Thomas Vachuska | e5ab5f7 | 2015-10-13 11:55:52 -0700 | [diff] [blame] | 67 | <step name="Net-Topo.Verify-Cluster0-Infra2" requires="Net-Topo.Query-Cluster0-Infra2" |
Ray Milkey | e082777 | 2015-09-11 16:49:21 -0700 | [diff] [blame] | 68 | exec="test '${infra2Infrastructure}' == 'True'"/> |
| 69 | |
Thomas Vachuska | e5ab5f7 | 2015-10-13 11:55:52 -0700 | [diff] [blame] | 70 | <step name="Net-Topo.Query-Cluster0-Infra3" |
Ray Milkey | 7728b6a | 2016-08-23 16:04:45 -0700 | [diff] [blame] | 71 | exec="find-topo-infrastructure.py ${OC1} infra3 of:0000000000000012:1"/> |
Thomas Vachuska | e5ab5f7 | 2015-10-13 11:55:52 -0700 | [diff] [blame] | 72 | <step name="Net-Topo.Verify-Cluster0-Infra3" requires="Net-Topo.Query-Cluster0-Infra3" |
Ray Milkey | e082777 | 2015-09-11 16:49:21 -0700 | [diff] [blame] | 73 | exec="test '${infra3Infrastructure}' == 'False'"/> |
| 74 | |
| 75 | </group> |
| 76 | </scenario> |