2014-01-20 10:09:13 -06:00
|
|
|
# Copyright (C) 2013, 2014 Red Hat, Inc.
|
2013-03-17 16:06:52 -05: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-27 15:59:47 -05:00
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
2013-03-17 16:06:52 -05: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 09:40:34 -05:00
|
|
|
from virtcli import cliconfig as _cliconfig
|
2013-03-17 16:06:52 -05:00
|
|
|
|
|
|
|
|
2014-09-08 09:40:34 -05: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
|
|
|
|
|
2014-09-12 14:59:22 -05:00
|
|
|
from . import util
|
2013-08-08 19:47:17 -05:00
|
|
|
from virtinst import support
|
2013-03-17 16:06:52 -05:00
|
|
|
|
2013-07-17 06:53:47 -05:00
|
|
|
from virtinst.osxml import OSXML
|
2013-08-08 20:42:44 -05:00
|
|
|
from virtinst.domainfeatures import DomainFeatures
|
|
|
|
from virtinst.domainnumatune import DomainNumatune
|
2014-02-06 08:41:00 -06:00
|
|
|
from virtinst.domainblkiotune import DomainBlkiotune
|
2014-02-24 20:02:31 -06:00
|
|
|
from virtinst.domainmemorytune import DomainMemorytune
|
2014-03-22 05:15:46 -05:00
|
|
|
from virtinst.domainmemorybacking import DomainMemorybacking
|
2014-06-03 21:08:05 -05:00
|
|
|
from virtinst.domainresource import DomainResource
|
2013-08-08 20:42:44 -05:00
|
|
|
from virtinst.clock import Clock
|
|
|
|
from virtinst.cpu import CPU, CPUFeature
|
|
|
|
from virtinst.seclabel import Seclabel
|
2014-02-02 15:12:29 -06:00
|
|
|
from virtinst.pm import PM
|
2014-02-09 09:25:25 -06:00
|
|
|
from virtinst.idmap import IdMap
|
2013-08-08 20:42:44 -05:00
|
|
|
|
2014-09-12 14:59:22 -05:00
|
|
|
from virtinst import capabilities as CapabilitiesParser
|
2013-09-09 16:14:16 -05:00
|
|
|
from virtinst.interface import Interface, InterfaceProtocol
|
2013-09-20 19:40:07 -05:00
|
|
|
from virtinst.network import Network
|
2013-09-22 17:13:24 -05:00
|
|
|
from virtinst.nodedev import NodeDevice
|
2013-09-20 19:40:07 -05:00
|
|
|
from virtinst.storage import StoragePool, StorageVolume
|
2013-08-08 20:42:44 -05: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 08:29:28 -05:00
|
|
|
from virtinst.devicerng import VirtualRNGDevice
|
2014-01-10 03:37:54 -06:00
|
|
|
from virtinst.devicepanic import VirtualPanicDevice
|
2013-08-08 20:42:44 -05:00
|
|
|
|
|
|
|
from virtinst.installer import (ContainerInstaller, ImportInstaller,
|
2014-09-07 12:42:56 -05:00
|
|
|
PXEInstaller, Installer)
|
2013-08-08 19:47:17 -05:00
|
|
|
|
2013-08-08 20:42:44 -05:00
|
|
|
from virtinst.distroinstaller import DistroInstaller
|
2013-08-08 19:47:17 -05:00
|
|
|
|
2013-08-08 20:42:44 -05:00
|
|
|
from virtinst.guest import Guest
|
|
|
|
from virtinst.cloner import Cloner
|
2013-08-05 16:20:35 -05:00
|
|
|
from virtinst.snapshot import DomainSnapshot
|
2013-08-08 19:47:17 -05:00
|
|
|
|
2013-07-05 07:59:58 -05:00
|
|
|
from virtinst.connection import VirtualConnection
|