2014-01-21 00:09:13 +08:00
|
|
|
# Copyright (C) 2013, 2014 Red Hat, Inc.
|
2013-03-18 05:06:52 +08:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
2013-10-28 04:59:47 +08:00
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
2013-03-18 05:06:52 +08:00
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
|
|
|
# MA 02110-1301 USA.
|
|
|
|
|
2014-09-08 22:40:34 +08:00
|
|
|
from virtcli import cliconfig as _cliconfig
|
2013-03-18 05:06:52 +08:00
|
|
|
|
|
|
|
|
2014-09-08 22:40:34 +08:00
|
|
|
def _setup_i18n():
|
|
|
|
import gettext
|
|
|
|
import locale
|
|
|
|
|
|
|
|
try:
|
|
|
|
locale.setlocale(locale.LC_ALL, '')
|
|
|
|
except:
|
|
|
|
# Can happen if user passed a bogus LANG
|
|
|
|
pass
|
|
|
|
|
|
|
|
gettext.install("virt-manager", _cliconfig.gettext_dir)
|
|
|
|
gettext.bindtextdomain("virt-manager", _cliconfig.gettext_dir)
|
|
|
|
|
|
|
|
_setup_i18n()
|
|
|
|
stable_defaults = _cliconfig.stable_defaults
|
|
|
|
|
2013-08-09 08:47:17 +08:00
|
|
|
from virtinst import util
|
|
|
|
from virtinst import support
|
2013-03-18 05:06:52 +08:00
|
|
|
|
2013-07-17 19:53:47 +08:00
|
|
|
from virtinst.osxml import OSXML
|
2013-08-09 09:42:44 +08:00
|
|
|
from virtinst.domainfeatures import DomainFeatures
|
|
|
|
from virtinst.domainnumatune import DomainNumatune
|
2014-02-06 22:41:00 +08:00
|
|
|
from virtinst.domainblkiotune import DomainBlkiotune
|
2014-02-25 10:02:31 +08:00
|
|
|
from virtinst.domainmemorytune import DomainMemorytune
|
2014-03-22 18:15:46 +08:00
|
|
|
from virtinst.domainmemorybacking import DomainMemorybacking
|
2014-06-04 10:08:05 +08:00
|
|
|
from virtinst.domainresource import DomainResource
|
2013-08-09 09:42:44 +08:00
|
|
|
from virtinst.clock import Clock
|
|
|
|
from virtinst.cpu import CPU, CPUFeature
|
|
|
|
from virtinst.seclabel import Seclabel
|
2014-02-03 05:12:29 +08:00
|
|
|
from virtinst.pm import PM
|
2014-02-09 23:25:25 +08:00
|
|
|
from virtinst.idmap import IdMap
|
2013-08-09 09:42:44 +08:00
|
|
|
|
|
|
|
import virtinst.capabilities as CapabilitiesParser
|
2013-09-10 05:14:16 +08:00
|
|
|
from virtinst.interface import Interface, InterfaceProtocol
|
2013-09-21 08:40:07 +08:00
|
|
|
from virtinst.network import Network
|
2013-09-23 06:13:24 +08:00
|
|
|
from virtinst.nodedev import NodeDevice
|
2013-09-21 08:40:07 +08:00
|
|
|
from virtinst.storage import StoragePool, StorageVolume
|
2013-08-09 09:42:44 +08:00
|
|
|
|
|
|
|
from virtinst.device import VirtualDevice
|
|
|
|
from virtinst.deviceinterface import VirtualNetworkInterface
|
|
|
|
from virtinst.devicegraphics import VirtualGraphics
|
|
|
|
from virtinst.deviceaudio import VirtualAudio
|
|
|
|
from virtinst.deviceinput import VirtualInputDevice
|
|
|
|
from virtinst.devicedisk import VirtualDisk
|
|
|
|
from virtinst.devicehostdev import VirtualHostDevice
|
|
|
|
from virtinst.devicechar import (VirtualChannelDevice,
|
|
|
|
VirtualConsoleDevice,
|
|
|
|
VirtualParallelDevice,
|
|
|
|
VirtualSerialDevice)
|
|
|
|
from virtinst.devicevideo import VirtualVideoDevice
|
|
|
|
from virtinst.devicecontroller import VirtualController
|
|
|
|
from virtinst.devicewatchdog import VirtualWatchdog
|
|
|
|
from virtinst.devicefilesystem import VirtualFilesystem
|
|
|
|
from virtinst.devicesmartcard import VirtualSmartCardDevice
|
|
|
|
from virtinst.deviceredirdev import VirtualRedirDevice
|
|
|
|
from virtinst.devicememballoon import VirtualMemballoon
|
|
|
|
from virtinst.devicetpm import VirtualTPMDevice
|
2013-09-18 21:29:28 +08:00
|
|
|
from virtinst.devicerng import VirtualRNGDevice
|
2014-01-10 17:37:54 +08:00
|
|
|
from virtinst.devicepanic import VirtualPanicDevice
|
2013-08-09 09:42:44 +08:00
|
|
|
|
|
|
|
from virtinst.installer import (ContainerInstaller, ImportInstaller,
|
2014-09-08 01:42:56 +08:00
|
|
|
PXEInstaller, Installer)
|
2013-08-09 08:47:17 +08:00
|
|
|
|
2013-08-09 09:42:44 +08:00
|
|
|
from virtinst.distroinstaller import DistroInstaller
|
2013-08-09 08:47:17 +08:00
|
|
|
|
2013-08-09 09:42:44 +08:00
|
|
|
from virtinst.guest import Guest
|
|
|
|
from virtinst.cloner import Cloner
|
2013-08-06 05:20:35 +08:00
|
|
|
from virtinst.snapshot import DomainSnapshot
|
2013-08-09 08:47:17 +08:00
|
|
|
|
2013-07-05 20:59:58 +08:00
|
|
|
from virtinst.connection import VirtualConnection
|