Hides prefix_length column in subnet show output

When the openstacksdk is patched to properly support defining prefix
lengths when creating subnets, the resulting subnet show output
reveals a prefix_length column with a value of 'none'. This patch
hides the prefix_length column.

Change-Id: I59dfb0b1585ed624f9d82b3557df2ff5ff9d1b3e
Partial-Bug: 1754062
Depends-On: https://review.openstack.org/#/c/550558/
This commit is contained in:
James Denton
2019-01-14 15:22:45 +00:00
committed by Stephen Finucane
parent 86bca18b74
commit d769ff4393

View File

@@ -141,7 +141,7 @@ def _get_columns(item):
'tenant_id': 'project_id',
}
# Do not show this column when displaying a subnet
invisible_columns = ['use_default_subnet_pool']
invisible_columns = ['use_default_subnet_pool', 'prefix_length']
return sdk_utils.get_osc_show_columns_for_sdk_resource(
item,
column_map,