18a39ba89SGeorge Keishing*** Settings *** 28a39ba89SGeorge Keishing 38a39ba89SGeorge KeishingDocumentation Verify that the OS network interfaces are configured and 48a39ba89SGeorge Keishing... stable. 58a39ba89SGeorge Keishing 68a39ba89SGeorge Keishing# TEST PARAMETERS: 78a39ba89SGeorge Keishing# OS_HOST The OS host name or IP address. 88a39ba89SGeorge Keishing# OS_USERNAME The OS user name. 98a39ba89SGeorge Keishing# OS_PASSWORD The OS Host password. 108a39ba89SGeorge Keishing# FAIL_ON_LINK_DOWN If set to 1, the test will exit if 118a39ba89SGeorge Keishing# a link is down. Default is 1. 128a39ba89SGeorge Keishing 138a39ba89SGeorge KeishingResource ../syslib/utils_install.robot 148a39ba89SGeorge Keishing 15*87dc442cSGeorge KeishingForce Tags Host_Network_Interfaces 16*87dc442cSGeorge Keishing 178a39ba89SGeorge Keishing*** Variables *** 18*87dc442cSGeorge Keishing 198a39ba89SGeorge Keishing${FAIL_ON_LINK_DOWN} 1 208a39ba89SGeorge Keishing 218a39ba89SGeorge Keishing 228a39ba89SGeorge Keishing*** Test Cases *** 238a39ba89SGeorge KeishingVerify Network Interfaces 248a39ba89SGeorge Keishing [Documentation] Verify the states of all system interfaces. 258a39ba89SGeorge Keishing [Tags] Verify_Network_Interfaces 268a39ba89SGeorge Keishing 27c108e429SMichael Walsh Printn 288a39ba89SGeorge Keishing REST Power On 298a39ba89SGeorge Keishing @{interface_names}= Get OS Network Interface Names 3005eb71ceSGeorge Keishing FOR ${interface_name} IN @{interface_names} 3105eb71ceSGeorge Keishing ${ethtool_dict}= Get OS Ethtool ${interface_name} 3205eb71ceSGeorge Keishing Run Keyword If ${FAIL_ON__LINK_DOWN} == 1 3305eb71ceSGeorge Keishing ... Should Be Equal ${ethtool_dict['link_detected']} yes 3405eb71ceSGeorge Keishing ... msg=Link ${interface_name} is down. 3505eb71ceSGeorge Keishing END 36