blob: 0a19caa44629675d783961ffceee23faee8c0496 [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 -->
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080026 <step name="Net-Trellis-P4-Links.Query-204-226-Link-1"
Ray Milkey51cf3072018-12-11 08:46:52 -080027 exec="find-link.py ${OC1} link_204_226_1_ device:bmv2:s204 1 device:bmv2:s226 1"/>
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080028 <step name="Net-Trellis-P4-Links.Validate-204-226-Link-1-State" requires="^"
Ray Milkey51cf3072018-12-11 08:46:52 -080029 exec="test '${link_204_226_1_State}' == 'ACTIVE'"/>
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080030 <step name="Net-Trellis-P4-Links.Validate-204-226-Link-1-Type" requires="^"
Ray Milkey51cf3072018-12-11 08:46:52 -080031 exec="test '${link_204_226_1_Type}' == 'DIRECT'"/>
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080032 <step name="Net-Trellis-P4-Links.Validate-204-226-Link-1-Src-Device" requires="^"
Ray Milkey51cf3072018-12-11 08:46:52 -080033 exec="test '${link_204_226_1_SrcDevice}' == 'device:bmv2:s204'"/>
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080034 <step name="Net-Trellis-P4-Links.Validate-204-226-Link-1-Dst-Device" requires="^"
Ray Milkey51cf3072018-12-11 08:46:52 -080035 exec="test '${link_204_226_1_DstDevice}' == 'device:bmv2:s226'"/>
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080036 <step name="Net-Trellis-P4-Links.Validate-204-226-Link-1-Src-Port" requires="^"
Ray Milkey51cf3072018-12-11 08:46:52 -080037 exec="test '${link_204_226_1_SrcPort}' == '1'"/>
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080038 <step name="Net-Trellis-P4-Links.Validate-204-226-Link-1-Dst-Port" requires="^"
Ray Milkey51cf3072018-12-11 08:46:52 -080039 exec="test '${link_204_226_1_DstPort}' == '1'"/>
40
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080041 <step name="Net-Trellis-P4-Links.Query-226-204-Link-2"
Ray Milkey51cf3072018-12-11 08:46:52 -080042 exec="find-link.py ${OC1} link_226_204_2_ device:bmv2:s226 1 device:bmv2:s204 1"/>
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080043 <step name="Net-Trellis-P4-Links.Validate-226-204-Link-2-State" requires="^"
Ray Milkey51cf3072018-12-11 08:46:52 -080044 exec="test '${link_226_204_2_State}' == 'ACTIVE'"/>
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080045 <step name="Net-Trellis-P4-Links.Validate-226-204-Link-2-Type" requires="^"
Ray Milkey51cf3072018-12-11 08:46:52 -080046 exec="test '${link_226_204_2_Type}' == 'DIRECT'"/>
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080047 <step name="Net-Trellis-P4-Links.Validate-226-204-Link-2-Src-Device" requires="^"
Ray Milkey51cf3072018-12-11 08:46:52 -080048 exec="test '${link_226_204_2_SrcDevice}' == 'device:bmv2:s226'"/>
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080049 <step name="Net-Trellis-P4-Links.Validate-226-204-Link-2-Dst-Device" requires="^"
Ray Milkey51cf3072018-12-11 08:46:52 -080050 exec="test '${link_226_204_2_DstDevice}' == 'device:bmv2:s204'"/>
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080051 <step name="Net-Trellis-P4-Links.Validate-226-204-Link-2-Src-Port" requires="^"
Ray Milkey51cf3072018-12-11 08:46:52 -080052 exec="test '${link_226_204_2_SrcPort}' == '1'"/>
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080053 <step name="Net-Trellis-P4-Links.Validate-226-204-Link-2-Dst-Port" requires="^"
Ray Milkey51cf3072018-12-11 08:46:52 -080054 exec="test '${link_226_204_2_DstPort}' == '1'"/>
55
56 <!-- Bi-Directional link between s205 and s227 -->
57 <!-- Link 1 -->
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080058 <step name="Net-Trellis-P4-Links.Query-205-227-Link-1"
Ray Milkey51cf3072018-12-11 08:46:52 -080059 exec="find-link.py ${OC1} link_205_227_1_ device:bmv2:s205 2 device:bmv2:s227 2"/>
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080060 <step name="Net-Trellis-P4-Links.Validate-205-227-Link-1-State" requires="^"
Ray Milkey51cf3072018-12-11 08:46:52 -080061 exec="test '${link_205_227_1_State}' == 'ACTIVE'"/>
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080062 <step name="Net-Trellis-P4-Links.Validate-205-227-Link-1-Type" requires="^"
Ray Milkey51cf3072018-12-11 08:46:52 -080063 exec="test '${link_205_227_1_Type}' == 'DIRECT'"/>
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080064 <step name="Net-Trellis-P4-Links.Validate-205-227-Link-1-Src-Device" requires="^"
Ray Milkey51cf3072018-12-11 08:46:52 -080065 exec="test '${link_205_227_1_SrcDevice}' == 'device:bmv2:s205'"/>
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080066 <step name="Net-Trellis-P4-Links.Validate-205-227-Link-1-Dst-Device" requires="^"
Ray Milkey51cf3072018-12-11 08:46:52 -080067 exec="test '${link_205_227_1_DstDevice}' == 'device:bmv2:s227'"/>
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080068 <step name="Net-Trellis-P4-Links.Validate-205-227-Link-1-Src-Port" requires="^"
Ray Milkey51cf3072018-12-11 08:46:52 -080069 exec="test '${link_205_227_1_SrcPort}' == '2'"/>
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080070 <step name="Net-Trellis-P4-Links.Validate-205-227-Link-1-Dst-Port" requires="^"
Ray Milkey51cf3072018-12-11 08:46:52 -080071 exec="test '${link_205_227_1_DstPort}' == '2'"/>
72
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080073 <step name="Net-Trellis-P4-Links.Query-227-205-Link-2"
Ray Milkey51cf3072018-12-11 08:46:52 -080074 exec="find-link.py ${OC1} link_227_205_2_ device:bmv2:s227 2 device:bmv2:s205 2"/>
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080075 <step name="Net-Trellis-P4-Links.Validate-227-205-Link-2-State" requires="^"
Ray Milkey51cf3072018-12-11 08:46:52 -080076 exec="test '${link_227_205_2_State}' == 'ACTIVE'"/>
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080077 <step name="Net-Trellis-P4-Links.Validate-227-205-Link-2-Type" requires="^"
Ray Milkey51cf3072018-12-11 08:46:52 -080078 exec="test '${link_227_205_2_Type}' == 'DIRECT'"/>
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080079 <step name="Net-Trellis-P4-Links.Validate-227-205-Link-2-Src-Device" requires="^"
Ray Milkey51cf3072018-12-11 08:46:52 -080080 exec="test '${link_227_205_2_SrcDevice}' == 'device:bmv2:s227'"/>
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080081 <step name="Net-Trellis-P4-Links.Validate-227-205-Link-2-Dst-Device" requires="^"
Ray Milkey51cf3072018-12-11 08:46:52 -080082 exec="test '${link_227_205_2_DstDevice}' == 'device:bmv2:s205'"/>
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080083 <step name="Net-Trellis-P4-Links.Validate-227-205-Link-2-Src-Port" requires="^"
Ray Milkey51cf3072018-12-11 08:46:52 -080084 exec="test '${link_227_205_2_SrcPort}' == '2'"/>
Carmelo Cascone0c6f0a52018-12-13 23:16:10 -080085 <step name="Net-Trellis-P4-Links.Validate-227-205-Link-2-Dst-Port" requires="^"
Ray Milkey51cf3072018-12-11 08:46:52 -080086 exec="test '${link_227_205_2_DstPort}' == '2'"/>
87
88 </group>
89
90</scenario>