X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=common%2Fci%2Fsetup.sh;h=4d754a90d4901431f77e32264d3674820099ecdc;hb=87157c0dc9bd2a3da709d1cf980cce2e9c5469a3;hp=3ffd36b0ceb4fa6acfb0aa21c1f74cb68cf1fbfc;hpb=30361efb7d3bf9525e9d9aadd5c137e9a654d1a4;p=genesis.git diff --git a/common/ci/setup.sh b/common/ci/setup.sh index 3ffd36b..4d754a9 100755 --- a/common/ci/setup.sh +++ b/common/ci/setup.sh @@ -88,6 +88,7 @@ check_interface() { if [[ ${link_state} != 'UP' ]]; then echo "${blue}${interface} state is ${link_state}. Bringing it UP!${reset}" ip link set dev ${interface} up + sleep 5 link_state=$(ip link show ${interface} | grep -oP 'state \K[^ ]+') if [[ ${link_state} != 'UP' ]]; then echo "${red}Could not bring UP interface ${interface} link state is ${link_state}${reset}" @@ -135,9 +136,6 @@ setup_pxe_bridge() { echo "${green}OK!${reset}" fi - #Check whether PXE bridge is UP - check_interface ${pxe_bridge} - #Add VLAN 0 (PXE) interface to PXE bridge echo "${blue}Checking whether VLAN 0 (PXE) interface ${pxe_interface} is added to PXE bridge ${pxe_bridge} exists${reset}" if ! brctl show ${pxe_bridge} 2>&1 | grep ${pxe_interface}; then @@ -151,6 +149,9 @@ setup_pxe_bridge() { echo "${green}OK!${reset}" fi + #Check whether PXE bridge is UP + check_interface ${pxe_bridge} + #Add Fuel Gateway IP Address to PXE bridge echo "${blue}Checking whether Fuel Gateway IP Address ${fuel_gw_ip} is assigned to PXE bridge ${pxe_bridge}${reset}" if ! ip addr show ${pxe_bridge} | grep ${fuel_gw_ip}; then