1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-26 10:03:37 +03:00

L #-: Unify func style in detach_nic (#3918)

This commit is contained in:
Jan Orel 2019-11-06 20:05:47 +01:00 committed by Ruben S. Montero
parent 6eb5d0156f
commit f333816276

View File

@ -22,12 +22,13 @@ source $(dirname $0)/../../scripts_common.sh
DOMAIN=$1
MAC=$2
function is_attached()
function is_attached
{
virsh --connect $LIBVIRT_URI domiflist $DOMAIN | grep $MAC > /dev/null 2>&1
}
function detach_nic {
function detach_nic
{
exec_and_log "virsh --connect $LIBVIRT_URI detach-interface $DETACH_ARGS" \
"Could not detach NIC ($MAC) from $DOMAIN"
}