]> git.ipfire.org Git - thirdparty/libvirt.git/commit
npiv: Auto-generate WWN if it's not specified
authorOsier Yang <jyang@redhat.com>
Fri, 10 Feb 2012 04:51:47 +0000 (12:51 +0800)
committerOsier Yang <jyang@redhat.com>
Fri, 10 Feb 2012 04:53:25 +0000 (12:53 +0800)
commit7c90026db953705d7e30cd87cda01a8504227c5c
tree9a27bdf5362b326e2dfe70b5f5cf31054195ca11
parent8ac1f8f44a53d3b05f5b712b8d5848c5b71e541c
npiv: Auto-generate WWN if it's not specified

The auto-generated WWN comply with the new addressing schema of WWN:

<quote>
the first nibble is either hex 5 or 6 followed by a 3-byte vendor
identifier and 36 bits for a vendor-specified serial number.
</quote>

We choose hex 5 for the first nibble. And for the 3-bytes vendor ID,
we uses the OUI according to underlying hypervisor type, (invoking
virConnectGetType to get the virt type). e.g. If virConnectGetType
returns "QEMU", we use Qumranet's OUI (00:1A:4A), if returns
ESX|VMWARE, we use VMWARE's OUI (00:05:69). Currently it only
supports qemu|xen|libxl|xenapi|hyperv|esx|vmware drivers. The last
36 bits are auto-generated.
po/POTFILES.in
src/conf/node_device_conf.c
src/conf/node_device_conf.h
src/libvirt_private.syms
src/node_device/node_device_driver.c
src/qemu/qemu_driver.c
src/test/test_driver.c
src/util/virrandom.c
src/util/virrandom.h
src/xen/xen_driver.c
tests/nodedevxml2xmltest.c