mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 12:22:38 +09:00
B #5171: Check if NIC is really absent after detach on KVM
This commit is contained in:
1 file changed
+7
@@ -26,3 +26,10 @@ DETACH_ARGS="--domain $DOMAIN --type bridge --mac $MAC"
|
||||
|
||||
exec_and_log "virsh --connect $LIBVIRT_URI detach-interface $DETACH_ARGS" \
|
||||
"Could not detach NIC ($MAC) from $DOMAIN"
|
||||
|
||||
virsh --connect $LIBVIRT_URI domiflist $DOMAIN | grep $MAC > /dev/null 2>&1
|
||||
|
||||
if [ $? -eq 0 ] ; then
|
||||
error_message "Could not detach NIC ($MAC) from $DOMAIN"
|
||||
exit -1
|
||||
fi
|
||||
Reference in new issue
Block a user