mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-06 13:17:58 +03:00
2f89ecf4a9
Similar to what was done in libvirt. See these commits:600462834f
c99e954973
25 lines
493 B
Python
25 lines
493 B
Python
# Copyright (C) 2013 Red Hat, Inc.
|
|
#
|
|
# Copyright 2012
|
|
#
|
|
# This work is licensed under the GNU GPLv2 or later.
|
|
# See the COPYING file in the top-level directory.
|
|
|
|
from .device import Device
|
|
from ..xmlbuilder import XMLProperty
|
|
|
|
|
|
class DeviceMemballoon(Device):
|
|
XML_NAME = "memballoon"
|
|
|
|
model = XMLProperty("./@model")
|
|
|
|
|
|
##################
|
|
# Default config #
|
|
##################
|
|
|
|
def set_defaults(self, guest):
|
|
if not self.model:
|
|
self.model = "virtio"
|