Since I no longer test FMOS in IPv6-only environments, I need `vmip` to show IPv4 addresses, too.
3 lines
166 B
Plaintext
3 lines
166 B
Plaintext
virsh qemu-agent-command $1 '{"execute":"guest-network-get-interfaces"}' \
|
|
| jq -r '.return | .[] | select(.name!="lo") | .["ip-addresses"] | .[] | .["ip-address"]'
|