2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-12 00:00:12 +00:00

Merge pull request #6824 from gurevichmark/br33_testcase2

Add extra debug output to confignetwork script
This commit is contained in:
cxhong
2020-09-11 14:17:25 -04:00
committed by GitHub

View File

@ -756,9 +756,12 @@ function check_brctl() {
function check_and_set_device_managed() {
devname=$1
rc=1
log_info "check_and_set_device_managed for device $devname"
$nmcli device show $devname >/dev/null 2>/dev/null
if [ $? -ne 0 ]; then
log_error "Device $devname not found"
# Could not find the device we wanted. Display all devices
$nmcli device show
else
$nmcli -g GENERAL.STATE device show $devname|grep unmanaged >/dev/null 2>/dev/null
if [ $? -eq 0 ]; then