virt-install: support network --disk's

Enterprise / Virtualization / virt-manager - Cole Robinson [redhat.com] - 6 December 2014 20:00 UTC

Handle type=network in devicedisk.py, and wire up all the network fields for virt-install --disk. Right now it requires manually spelling out all the protocol, name, host/port etc fields.

The one 'magic' bit is that VirtualDisk.path will be a pretty URL when all those network fields are specified. This is keeps things mostly working in various parts of the code where we expect 'path' to be an identifier for a VirtualDisk.

cd305da virt-install: support network --disk's
.../compare/virt-install-many-devices.xml | 24 ++++++++
tests/clitest.py | 2 +
tests/xmlparse-xml/change-disk-in.xml | 16 ++++++
tests/xmlparse-xml/change-disk-out.xml | 23 +++++++-
tests/xmlparse.py | 24 ++++++++
virtinst/cli.py | 7 +++
virtinst/devicedisk.py | 60 ++++++++++++++++++--
virtinst/diskbackend.py | 14 ++++-
8 files changed, 159 insertions(+), 11 deletions(-)

Upstream: git.fedorahosted.org


  • Share