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 | |
| 13 | Resource ../syslib/utils_install.robot |
| 14 | |
| 15 | *** Variables *** |
| 16 | ${FAIL_ON_LINK_DOWN} 1 |
| 17 | |
| 18 | |
| 19 | *** Test Cases *** |
| 20 | Verify Network Interfaces |
| 21 | [Documentation] Verify the states of all system interfaces. |
| 22 | [Tags] Verify_Network_Interfaces |
| 23 | |
| 24 | Rprintn |
George Keishing | 8a39ba8 | 2018-09-13 10:03:18 -0500 | [diff] [blame] | 25 | REST Power On |
Joy Onyerikwu | 4cb8c0a | 2018-04-11 18:05:13 -0500 | [diff] [blame] | 26 | @{interface_names}= Get OS Network Interface Names |
| 27 | :FOR ${interface_name} IN @{interface_names} |
| 28 | \ ${ethtool_dict}= Get OS Ethtool ${interface_name} |
| 29 | \ Run Keyword If ${FAIL_ON__LINK_DOWN} == 1 |
| 30 | \ ... Should Be Equal ${ethtool_dict['link_detected']} yes |
Joy Onyerikwu | 0e7f4ae | 2018-09-14 12:37:56 -0500 | [diff] [blame] | 31 | \ ... msg=Link ${interface_name} is down. |