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
158a39ba89SGeorge Keishing*** Variables ***
168a39ba89SGeorge Keishing${FAIL_ON_LINK_DOWN}  1
178a39ba89SGeorge Keishing
188a39ba89SGeorge Keishing
198a39ba89SGeorge Keishing*** Test Cases ***
208a39ba89SGeorge KeishingVerify Network Interfaces
218a39ba89SGeorge Keishing    [Documentation]  Verify the states of all system interfaces.
228a39ba89SGeorge Keishing    [Tags]  Verify_Network_Interfaces
238a39ba89SGeorge Keishing
24*c108e429SMichael Walsh    Printn
258a39ba89SGeorge Keishing    REST Power On
268a39ba89SGeorge Keishing    @{interface_names}=  Get OS Network Interface Names
278a39ba89SGeorge Keishing    :FOR  ${interface_name}  IN  @{interface_names}
288a39ba89SGeorge Keishing    \  ${ethtool_dict}=  Get OS Ethtool  ${interface_name}
298a39ba89SGeorge Keishing    \  Run Keyword If  ${FAIL_ON__LINK_DOWN} == 1
308a39ba89SGeorge Keishing    \  ...  Should Be Equal  ${ethtool_dict['link_detected']}  yes
310e7f4aeeSJoy Onyerikwu    \  ...  msg=Link ${interface_name} is down.
32