[ovs-discuss] OVS and KVM: getting persistent UUID's or querying UUID values based on interface name
blp at nicira.com
Thu Jun 24 23:06:58 UTC 2010
On Wed, Jun 23, 2010 at 01:29:48PM -0600, Sean Brady wrote:
> Is there any way to get UUID persistence for these virtual
> interfaces? If not, is there a clean way to query the DB to get the
> UUID of a named port? If I could just consistently get the UUID of
> the port using a shell script I can have this working when the VM is
> started up.
You can do the latter with existing OVS with, e.g.:
ovs-vsctl list port eth0 | sed -n 's/^_uuid *: \(.*\)$/\1/p'
I've sent out a patch that will make it easier with future OVS:
ovs-vsctl get port eth0 _uuid
More information about the discuss