Merge "nova-manage: Fix 'fixed list'"
This commit is contained in:
@@ -650,12 +650,14 @@ class FixedIpCommands(object):
|
|||||||
hostname = None
|
hostname = None
|
||||||
host = None
|
host = None
|
||||||
mac_address = None
|
mac_address = None
|
||||||
if fixed_ip['instance']:
|
network = db.network_get(context.get_admin_context(),
|
||||||
|
fixed_ip['network_id'])
|
||||||
|
if fixed_ip['instance_id']:
|
||||||
instance = instances_by_id[fixed_ip['instance_id']]
|
instance = instances_by_id[fixed_ip['instance_id']]
|
||||||
hostname = instance['hostname']
|
hostname = instance['hostname']
|
||||||
host = instance['host']
|
host = instance['host']
|
||||||
print "%-18s\t%-15s\t%-15s\t%s" % (
|
print "%-18s\t%-15s\t%-15s\t%s" % (
|
||||||
fixed_ip['network']['cidr'],
|
network['cidr'],
|
||||||
fixed_ip['address'],
|
fixed_ip['address'],
|
||||||
hostname, host)
|
hostname, host)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user