blob: 620ad90179467dc56cf6ea2daa6665e54f7ce14a [file] [log] [blame]
Ray Milkey0b53f952018-04-02 08:54:51 -07001<!--
2 ~ Copyright 2018-present Open Networking Foundation
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
17
18
19<scenario name="net-trellis-HAG-links" description="Trellis network link check steps">
20
21 <group name="Net-Trellis-HAG-Links">
22 <!-- Verify some links using the REST API -->
23
24 <!-- Two Bi-Directional links between s206 and s226 -->
25 <!-- Link 1 -->
26 <step name="Net-Trellis-HAG-Links.Query-206-226-Link-1"
27 exec="find-link.py ${OC1} link_206_226_1_ of:0000000000000206 1 of:0000000000000226 7"/>
28 <step name="Net-Trellis-HAG-Links.Validate-206-226-Link-1-State" requires="^"
29 exec="test '${link_206_226_1_State}' == 'ACTIVE'"/>
30 <step name="Net-Trellis-HAG-Links.Validate-206-226-Link-1-Type" requires="^"
31 exec="test '${link_206_226_1_Type}' == 'DIRECT'"/>
32 <step name="Net-Trellis-HAG-Links.Validate-206-226-Link-1-Src-Device" requires="^"
33 exec="test '${link_206_226_1_SrcDevice}' == 'of:0000000000000206'"/>
34 <step name="Net-Trellis-HAG-Links.Validate-206-226-Link-1-Dst-Device" requires="^"
35 exec="test '${link_206_226_1_DstDevice}' == 'of:0000000000000226'"/>
36 <step name="Net-Trellis-HAG-Links.Validate-206-226-Link-1-Src-Port" requires="^"
37 exec="test '${link_206_226_1_SrcPort}' == '1'"/>
38 <step name="Net-Trellis-HAG-Links.Validate-206-226-Link-1-Dst-Port" requires="^"
39 exec="test '${link_206_226_1_DstPort}' == '7'"/>
40
41 <step name="Net-Trellis-HAG-Links.Query-226-206-Link-1"
42 exec="find-link.py ${OC1} link_226_206_1_ of:0000000000000226 7 of:0000000000000206 1"/>
43 <step name="Net-Trellis-HAG-Links.Validate-226-206-Link-1-State" requires="^"
44 exec="test '${link_226_206_1_State}' == 'ACTIVE'"/>
45 <step name="Net-Trellis-HAG-Links.Validate-226-206-Link-1-Type" requires="^"
46 exec="test '${link_226_206_1_Type}' == 'DIRECT'"/>
47 <step name="Net-Trellis-HAG-Links.Validate-226-206-Link-1-Src-Device" requires="^"
48 exec="test '${link_226_206_1_SrcDevice}' == 'of:0000000000000226'"/>
49 <step name="Net-Trellis-HAG-Links.Validate-226-206-Link-1-Dst-Device" requires="^"
50 exec="test '${link_226_206_1_DstDevice}' == 'of:0000000000000206'"/>
51 <step name="Net-Trellis-HAG-Links.Validate-226-206-Link-1-Src-Port" requires="^"
52 exec="test '${link_226_206_1_SrcPort}' == '7'"/>
53 <step name="Net-Trellis-HAG-Links.Validate-226-206-Link-1-Dst-Port" requires="^"
54 exec="test '${link_226_206_1_DstPort}' == '1'"/>
55
56 <!-- Link 2 -->
57 <step name="Net-Trellis-HAG-Links.Query-206-226-Link-2"
58 exec="find-link.py ${OC1} link_206_226_2_ of:0000000000000206 2 of:0000000000000226 8"/>
59 <step name="Net-Trellis-HAG-Links.Validate-206-226-Link-2-State" requires="^"
60 exec="test '${link_206_226_2_State}' == 'ACTIVE'"/>
61 <step name="Net-Trellis-HAG-Links.Validate-206-226-Link-2-Type" requires="^"
62 exec="test '${link_206_226_2_Type}' == 'DIRECT'"/>
63 <step name="Net-Trellis-HAG-Links.Validate-206-226-Link-2-Src-Device" requires="^"
64 exec="test '${link_206_226_2_SrcDevice}' == 'of:0000000000000206'"/>
65 <step name="Net-Trellis-HAG-Links.Validate-206-226-Link-2-Dst-Device" requires="^"
66 exec="test '${link_206_226_2_DstDevice}' == 'of:0000000000000226'"/>
67 <step name="Net-Trellis-HAG-Links.Validate-206-226-Link-2-Src-Port" requires="^"
68 exec="test '${link_206_226_2_SrcPort}' == '2'"/>
69 <step name="Net-Trellis-HAG-Links.Validate-206-226-Link-2-Dst-Port" requires="^"
70 exec="test '${link_206_226_2_DstPort}' == '8'"/>
71
72 <step name="Net-Trellis-HAG-Links.Query-226-206-Link-2"
73 exec="find-link.py ${OC1} link_226_206_2_ of:0000000000000226 8 of:0000000000000206 2"/>
74 <step name="Net-Trellis-HAG-Links.Validate-226-206-Link-2-State" requires="^"
75 exec="test '${link_226_206_2_State}' == 'ACTIVE'"/>
76 <step name="Net-Trellis-HAG-Links.Validate-226-206-Link-2-Type" requires="^"
77 exec="test '${link_226_206_2_Type}' == 'DIRECT'"/>
78 <step name="Net-Trellis-HAG-Links.Validate-226-206-Link-2-Src-Device" requires="^"
79 exec="test '${link_226_206_2_SrcDevice}' == 'of:0000000000000226'"/>
80 <step name="Net-Trellis-HAG-Links.Validate-226-206-Link-2-Dst-Device" requires="^"
81 exec="test '${link_226_206_2_DstDevice}' == 'of:0000000000000206'"/>
82 <step name="Net-Trellis-HAG-Links.Validate-226-206-Link-2-Src-Port" requires="^"
83 exec="test '${link_226_206_2_SrcPort}' == '8'"/>
84 <step name="Net-Trellis-HAG-Links.Validate-226-206-Link-2-Dst-Port" requires="^"
85 exec="test '${link_226_206_2_DstPort}' == '2'"/>
86 </group>
87
88</scenario>