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