ansible/roles/kvm_install/files/vhost_getMAC

2 lines
83 B
Bash

#!/bin/bash
/usr/bin/virsh dumpxml $1 | grep "mac address" | awk -F\' '{ print $2}'