From c8ac6883c396606db21d1226882b8301b4c7b2fe Mon Sep 17 00:00:00 2001 From: Haiwei Xu Date: Fri, 19 Dec 2014 11:49:33 +0900 Subject: [PATCH] Add 'Id' column to floating-ip-list Currently nova floating-ip-list doesn't show the ip's id, though the id is return from the server. This patch adds the 'Id' column. Change-Id: I8680fb6344bf8f6862a476cdb95c936a5fbab965 Closes-bug: #1404091 --- novaclient/v1_1/shell.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/novaclient/v1_1/shell.py b/novaclient/v1_1/shell.py index 3a438fdff..21a335dce 100644 --- a/novaclient/v1_1/shell.py +++ b/novaclient/v1_1/shell.py @@ -2323,7 +2323,8 @@ def _print_floating_ip_list(floating_ips): convert = [('instance_id', 'server_id')] _translate_keys(floating_ips, convert) - utils.print_list(floating_ips, ['Ip', 'Server Id', 'Fixed Ip', 'Pool']) + utils.print_list(floating_ips, + ['Id', 'Ip', 'Server Id', 'Fixed Ip', 'Pool']) @cliutils.arg('server', metavar='', help=_('Name or ID of server.'))