blob: bc4192ba38a162fcf920c4ff9574456b48a4efd3 [file] [log] [blame]
Ray Milkey51cf3072018-12-11 08:46:52 -08001<!--
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-p4-links" description="Trellis P4 network link check steps">
20
21 <group name="Net-Trellis-P4-Links">
22 <!-- Verify some links using the REST API -->
23
24 <!-- Bi-Directional link between s204 and s226 -->
25 <!-- Link 1 -->
26 <step name="Net-Trellis-HAG-Links.Query-204-226-Link-1"
27 exec="find-link.py ${OC1} link_204_226_1_ device:bmv2:s204 1 device:bmv2:s226 1"/>
28 <step name="Net-Trellis-HAG-Links.Validate-204-226-Link-1-State" requires="^"
29 exec="test '${link_204_226_1_State}' == 'ACTIVE'"/>
30 <step name="Net-Trellis-HAG-Links.Validate-204-226-Link-1-Type" requires="^"
31 exec="test '${link_204_226_1_Type}' == 'DIRECT'"/>
32 <step name="Net-Trellis-HAG-Links.Validate-204-226-Link-1-Src-Device" requires="^"
33 exec="test '${link_204_226_1_SrcDevice}' == 'device:bmv2:s204'"/>
34 <step name="Net-Trellis-HAG-Links.Validate-204-226-Link-1-Dst-Device" requires="^"
35 exec="test '${link_204_226_1_DstDevice}' == 'device:bmv2:s226'"/>
36 <step name="Net-Trellis-HAG-Links.Validate-204-226-Link-1-Src-Port" requires="^"
37 exec="test '${link_204_226_1_SrcPort}' == '1'"/>
38 <step name="Net-Trellis-HAG-Links.Validate-204-226-Link-1-Dst-Port" requires="^"
39 exec="test '${link_204_226_1_DstPort}' == '1'"/>
40
41 <step name="Net-Trellis-HAG-Links.Query-226-204-Link-2"
42 exec="find-link.py ${OC1} link_226_204_2_ device:bmv2:s226 1 device:bmv2:s204 1"/>
43 <step name="Net-Trellis-HAG-Links.Validate-226-204-Link-2-State" requires="^"
44 exec="test '${link_226_204_2_State}' == 'ACTIVE'"/>
45 <step name="Net-Trellis-HAG-Links.Validate-226-204-Link-2-Type" requires="^"
46 exec="test '${link_226_204_2_Type}' == 'DIRECT'"/>
47 <step name="Net-Trellis-HAG-Links.Validate-226-204-Link-2-Src-Device" requires="^"
48 exec="test '${link_226_204_2_SrcDevice}' == 'device:bmv2:s226'"/>
49 <step name="Net-Trellis-HAG-Links.Validate-226-204-Link-2-Dst-Device" requires="^"
50 exec="test '${link_226_204_2_DstDevice}' == 'device:bmv2:s204'"/>
51 <step name="Net-Trellis-HAG-Links.Validate-226-204-Link-2-Src-Port" requires="^"
52 exec="test '${link_226_204_2_SrcPort}' == '1'"/>
53 <step name="Net-Trellis-HAG-Links.Validate-226-204-Link-2-Dst-Port" requires="^"
54 exec="test '${link_226_204_2_DstPort}' == '1'"/>
55
56 <!-- Bi-Directional link between s205 and s227 -->
57 <!-- Link 1 -->
58 <step name="Net-Trellis-HAG-Links.Query-205-227-Link-1"
59 exec="find-link.py ${OC1} link_205_227_1_ device:bmv2:s205 2 device:bmv2:s227 2"/>
60 <step name="Net-Trellis-HAG-Links.Validate-205-227-Link-1-State" requires="^"
61 exec="test '${link_205_227_1_State}' == 'ACTIVE'"/>
62 <step name="Net-Trellis-HAG-Links.Validate-205-227-Link-1-Type" requires="^"
63 exec="test '${link_205_227_1_Type}' == 'DIRECT'"/>
64 <step name="Net-Trellis-HAG-Links.Validate-205-227-Link-1-Src-Device" requires="^"
65 exec="test '${link_205_227_1_SrcDevice}' == 'device:bmv2:s205'"/>
66 <step name="Net-Trellis-HAG-Links.Validate-205-227-Link-1-Dst-Device" requires="^"
67 exec="test '${link_205_227_1_DstDevice}' == 'device:bmv2:s227'"/>
68 <step name="Net-Trellis-HAG-Links.Validate-205-227-Link-1-Src-Port" requires="^"
69 exec="test '${link_205_227_1_SrcPort}' == '2'"/>
70 <step name="Net-Trellis-HAG-Links.Validate-205-227-Link-1-Dst-Port" requires="^"
71 exec="test '${link_205_227_1_DstPort}' == '2'"/>
72
73 <step name="Net-Trellis-HAG-Links.Query-227-205-Link-2"
74 exec="find-link.py ${OC1} link_227_205_2_ device:bmv2:s227 2 device:bmv2:s205 2"/>
75 <step name="Net-Trellis-HAG-Links.Validate-227-205-Link-2-State" requires="^"
76 exec="test '${link_227_205_2_State}' == 'ACTIVE'"/>
77 <step name="Net-Trellis-HAG-Links.Validate-227-205-Link-2-Type" requires="^"
78 exec="test '${link_227_205_2_Type}' == 'DIRECT'"/>
79 <step name="Net-Trellis-HAG-Links.Validate-227-205-Link-2-Src-Device" requires="^"
80 exec="test '${link_227_205_2_SrcDevice}' == 'device:bmv2:s227'"/>
81 <step name="Net-Trellis-HAG-Links.Validate-227-205-Link-2-Dst-Device" requires="^"
82 exec="test '${link_227_205_2_DstDevice}' == 'device:bmv2:s205'"/>
83 <step name="Net-Trellis-HAG-Links.Validate-227-205-Link-2-Src-Port" requires="^"
84 exec="test '${link_227_205_2_SrcPort}' == '2'"/>
85 <step name="Net-Trellis-HAG-Links.Validate-227-205-Link-2-Dst-Port" requires="^"
86 exec="test '${link_227_205_2_DstPort}' == '2'"/>
87
88 </group>
89
90</scenario>