Format port_details field of Floating IP
Depends-On: I31e940d2986278d2fbee6fdfea4ff15f7c07ebaa Change-Id: I115739ea253ce26e075cd3f10e719b13f18afa5b Partial-Bug: #1723026
This commit is contained in:
parent
06263bd585
commit
46f8614da8
@ -25,6 +25,11 @@ from openstackclient.network import sdk_utils
|
|||||||
from openstackclient.network.v2 import _tag
|
from openstackclient.network.v2 import _tag
|
||||||
|
|
||||||
|
|
||||||
|
_formatters = {
|
||||||
|
'port_details': utils.format_dict,
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
def _get_network_columns(item):
|
def _get_network_columns(item):
|
||||||
column_map = {
|
column_map = {
|
||||||
'tenant_id': 'project_id',
|
'tenant_id': 'project_id',
|
||||||
@ -489,7 +494,7 @@ class ShowFloatingIP(common.NetworkAndComputeShowOne):
|
|||||||
ignore_missing=False,
|
ignore_missing=False,
|
||||||
)
|
)
|
||||||
display_columns, columns = _get_network_columns(obj)
|
display_columns, columns = _get_network_columns(obj)
|
||||||
data = utils.get_item_properties(obj, columns)
|
data = utils.get_item_properties(obj, columns, formatters=_formatters)
|
||||||
return (display_columns, data)
|
return (display_columns, data)
|
||||||
|
|
||||||
def take_action_compute(self, client, parsed_args):
|
def take_action_compute(self, client, parsed_args):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user