This repository has been archived on 2023-11-14. You can view files and clone it, but cannot push or open issues/pull-requests.
|
virsh qemu-agent-command $1 '{"execute":"guest-network-get-interfaces"}' \
|
|
| jq -r '.return | .[] | select(.name=="eth0") | .["ip-addresses"] | map(select(.["ip-address-type"] == "ipv6" and (.["ip-address"]|startswith("fe80")|not)))[0]["ip-address"]'
|