summaryrefslogtreecommitdiff
path: root/openstackclient/network
diff options
context:
space:
mode:
authorJames Denton <james.denton@rackspace.com>2019-01-14 15:22:45 +0000
committerStephen Finucane <stephenfin@redhat.com>2021-03-19 18:43:35 +0000
commitd769ff4393661ebfde9d683c04cc271ddb550140 (patch)
tree64ef8c0238509e83a76f477ceb84056c4ab83c80 /openstackclient/network
parent86bca18b74539d024e3854af0dfd3552c4d3b50b (diff)
downloadpython-openstackclient-d769ff4393661ebfde9d683c04cc271ddb550140.tar.gz
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/
Diffstat (limited to 'openstackclient/network')
-rw-r--r--openstackclient/network/v2/subnet.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstackclient/network/v2/subnet.py b/openstackclient/network/v2/subnet.py
index b98f8641..eccdd4e4 100644
--- a/openstackclient/network/v2/subnet.py
+++ b/openstackclient/network/v2/subnet.py
@@ -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,