Compare commits
12 Commits
7b16606b16
...
docker
Author | SHA1 | Date | |
---|---|---|---|
abe768a521 | |||
18294cec43 | |||
982556a2c5 | |||
13646e64da | |||
67149f437a | |||
308ac05fe6 | |||
c378c2b287 | |||
5367822747 | |||
e295b4420c | |||
e4180b8306 | |||
5cd5126039 | |||
f8e9ab2482 |
@ -30,6 +30,6 @@ if virsh domuuid "$vmname" | grep -vqE '^[\t\s\n]*$'; then
|
||||
fi
|
||||
|
||||
# this gets the ipv4
|
||||
ipv4="$(virsh domifaddr "$vmname" | awk '/ipv4/ {print $4}' | cut -d'/' -f1)"
|
||||
ipv4="$(virsh domifaddr "$vmname" | awk '/vnet/ {print $4}' | cut -d'/' -f1)"
|
||||
|
||||
echo "$exists $state $ipv4"
|
Reference in New Issue
Block a user