1*8a39ba89SGeorge Keishing*** Settings ***
2*8a39ba89SGeorge Keishing
3*8a39ba89SGeorge KeishingDocumentation  Verify that the OS network interfaces are configured and
4*8a39ba89SGeorge Keishing...  stable.
5*8a39ba89SGeorge Keishing
6*8a39ba89SGeorge Keishing# TEST PARAMETERS:
7*8a39ba89SGeorge Keishing#   OS_HOST                     The OS host name or IP address.
8*8a39ba89SGeorge Keishing#   OS_USERNAME                 The OS user name.
9*8a39ba89SGeorge Keishing#   OS_PASSWORD                 The OS Host password.
10*8a39ba89SGeorge Keishing#   FAIL_ON_LINK_DOWN           If set to 1, the test will exit if
11*8a39ba89SGeorge Keishing#                               a link is down. Default is 1.
12*8a39ba89SGeorge Keishing
13*8a39ba89SGeorge KeishingResource         ../syslib/utils_install.robot
14*8a39ba89SGeorge Keishing
15*8a39ba89SGeorge Keishing*** Variables ***
16*8a39ba89SGeorge Keishing${FAIL_ON_LINK_DOWN}  1
17*8a39ba89SGeorge Keishing
18*8a39ba89SGeorge Keishing
19*8a39ba89SGeorge Keishing*** Test Cases ***
20*8a39ba89SGeorge KeishingVerify Network Interfaces
21*8a39ba89SGeorge Keishing    [Documentation]  Verify the states of all system interfaces.
22*8a39ba89SGeorge Keishing    [Tags]  Verify_Network_Interfaces
23*8a39ba89SGeorge Keishing
24*8a39ba89SGeorge Keishing    Rprintn
25*8a39ba89SGeorge Keishing    REST Power On
26*8a39ba89SGeorge Keishing    @{interface_names}=  Get OS Network Interface Names
27*8a39ba89SGeorge Keishing    :FOR  ${interface_name}  IN  @{interface_names}
28*8a39ba89SGeorge Keishing    \  ${ethtool_dict}=  Get OS Ethtool  ${interface_name}
29*8a39ba89SGeorge Keishing    \  Run Keyword If  ${FAIL_ON__LINK_DOWN} == 1
30*8a39ba89SGeorge Keishing    \  ...  Should Be Equal  ${ethtool_dict['link_detected']}  yes
31*8a39ba89SGeorge Keishing    \  ...  msg=Link ${interface} is down.
32