list command for floating ips
This commit is contained in:
@@ -245,9 +245,12 @@ class FloatingIpCommands(object):
|
|||||||
else:
|
else:
|
||||||
floating_ips = db.floating_ip_get_all_by_host(None, host)
|
floating_ips = db.floating_ip_get_all_by_host(None, host)
|
||||||
for floating_ip in floating_ips:
|
for floating_ip in floating_ips:
|
||||||
print "%s\t%s\ti-%s" % (floating_ip['host'],
|
instance = None
|
||||||
floating_ip['address'],
|
if floating_ip['fixed_ip']:
|
||||||
floating_ip['instance_id'])
|
instance = floating_ip['fixed_ip']['instance']['str_id']
|
||||||
|
print "%s\t%s\t%s" % (floating_ip['host'],
|
||||||
|
floating_ip['address'],
|
||||||
|
instance)
|
||||||
|
|
||||||
CATEGORIES = [
|
CATEGORIES = [
|
||||||
('user', UserCommands),
|
('user', UserCommands),
|
||||||
|
Reference in New Issue
Block a user