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:
parent
6eb5d0156f
commit
f333816276
@ -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"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user