Moved back templates and fixed pep8 issue. Template move was due to breaking packaging with template moves. That will need to happen in a later merge.
This commit is contained in:
parent
afa8bb371a
commit
99bab1b99b
|
@ -24,7 +24,8 @@ include nova/console/xvp.conf.template
|
|||
include nova/db/sqlalchemy/migrate_repo/migrate.cfg
|
||||
include nova/db/sqlalchemy/migrate_repo/README
|
||||
include nova/virt/interfaces.template
|
||||
include nova/virt/libvirt/*.template
|
||||
include nova/virt/libvirt*.xml.template
|
||||
include nova/virt/cpuinfo.xml.template
|
||||
include nova/tests/CA/
|
||||
include nova/tests/CA/cacert.pem
|
||||
include nova/tests/CA/private/
|
||||
|
|
|
@ -57,7 +57,6 @@ from nova import context
|
|||
from nova import db
|
||||
from nova import exception
|
||||
from nova import flags
|
||||
from nova import ipv6
|
||||
from nova import log as logging
|
||||
from nova import utils
|
||||
from nova import vnc
|
||||
|
@ -85,7 +84,7 @@ flags.DEFINE_string('rescue_image_id', 'ami-rescue', 'Rescue ami image')
|
|||
flags.DEFINE_string('rescue_kernel_id', 'aki-rescue', 'Rescue aki image')
|
||||
flags.DEFINE_string('rescue_ramdisk_id', 'ari-rescue', 'Rescue ari image')
|
||||
flags.DEFINE_string('libvirt_xml_template',
|
||||
utils.abspath('virt/libvirt/libvirt.xml.template'),
|
||||
utils.abspath('virt/libvirt.xml.template'),
|
||||
'Libvirt XML Template')
|
||||
flags.DEFINE_string('libvirt_type',
|
||||
'kvm',
|
||||
|
@ -108,7 +107,7 @@ flags.DEFINE_string('firewall_driver',
|
|||
'nova.virt.libvirt.firewall.IptablesFirewallDriver',
|
||||
'Firewall driver (defaults to iptables)')
|
||||
flags.DEFINE_string('cpuinfo_xml_template',
|
||||
utils.abspath('virt/libvirt/cpuinfo.xml.template'),
|
||||
utils.abspath('virt/cpuinfo.xml.template'),
|
||||
'CpuInfo XML Template (Used only live migration now)')
|
||||
flags.DEFINE_string('live_migration_uri',
|
||||
"qemu+tcp://%s/system",
|
||||
|
|
|
@ -26,6 +26,7 @@ import IPy
|
|||
from nova import context
|
||||
from nova import db
|
||||
from nova import flags
|
||||
from nova import ipv6
|
||||
from nova import utils
|
||||
|
||||
|
||||
|
@ -46,6 +47,7 @@ def get_ip_version(cidr):
|
|||
net = IPy.IP(cidr)
|
||||
return int(net.version())
|
||||
|
||||
|
||||
def get_network_info(instance):
|
||||
# TODO(adiantum) If we will keep this function
|
||||
# we should cache network_info
|
||||
|
@ -93,5 +95,3 @@ def get_network_info(instance):
|
|||
|
||||
network_info.append((network, mapping))
|
||||
return network_info
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue