Joy Onyerikwu | 4cb8c0a | 2018-04-11 18:05:13 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation Verify that the OS network interfaces are configured and |
| 4 | ... stable. |
| 5 | |
| 6 | # TEST PARAMETERS: |
| 7 | # OS_HOST The OS host name or IP address. |
| 8 | # OS_USERNAME The OS user name. |
| 9 | # OS_PASSWORD The OS Host password. |
| 10 | # FAIL_ON_LINK_DOWN If set to 1, the test will exit if |
| 11 | # a link is down. Default is 1. |
| 12 | |
George Keishing | 3aa424b | 2023-12-15 11:32:45 +0530 | [diff] [blame] | 13 | Resource ../lib/os_utils_install.robot |
Joy Onyerikwu | 4cb8c0a | 2018-04-11 18:05:13 -0500 | [diff] [blame] | 14 | |
Matt Fischer | 6fb70d9 | 2023-10-24 19:06:33 -0600 | [diff] [blame] | 15 | Test Tags Host_Network_Interfaces |
George Keishing | 87dc442 | 2023-10-20 12:56:30 +0530 | [diff] [blame] | 16 | |
Joy Onyerikwu | 4cb8c0a | 2018-04-11 18:05:13 -0500 | [diff] [blame] | 17 | *** Variables *** |
George Keishing | 87dc442 | 2023-10-20 12:56:30 +0530 | [diff] [blame] | 18 | |
Joy Onyerikwu | 4cb8c0a | 2018-04-11 18:05:13 -0500 | [diff] [blame] | 19 | ${FAIL_ON_LINK_DOWN} 1 |
| 20 | |
| 21 | |
| 22 | *** Test Cases *** |
| 23 | Verify Network Interfaces |
| 24 | [Documentation] Verify the states of all system interfaces. |
| 25 | [Tags] Verify_Network_Interfaces |
| 26 | |
Michael Walsh | c108e42 | 2019-03-28 12:27:18 -0500 | [diff] [blame] | 27 | Printn |
George Keishing | 8a39ba8 | 2018-09-13 10:03:18 -0500 | [diff] [blame] | 28 | REST Power On |
Joy Onyerikwu | 4cb8c0a | 2018-04-11 18:05:13 -0500 | [diff] [blame] | 29 | @{interface_names}= Get OS Network Interface Names |
George Keishing | 05eb71c | 2022-05-25 05:02:51 -0500 | [diff] [blame] | 30 | FOR ${interface_name} IN @{interface_names} |
| 31 | ${ethtool_dict}= Get OS Ethtool ${interface_name} |
| 32 | Run Keyword If ${FAIL_ON__LINK_DOWN} == 1 |
| 33 | ... Should Be Equal ${ethtool_dict['link_detected']} yes |
| 34 | ... msg=Link ${interface_name} is down. |
| 35 | END |