Skip to content

Commit d769ff4

Browse files
busterswtstephenfin
authored andcommitted
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/
1 parent 86bca18 commit d769ff4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openstackclient/network/v2/subnet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def _get_columns(item):
141141
'tenant_id': 'project_id',
142142
}
143143
# Do not show this column when displaying a subnet
144-
invisible_columns = ['use_default_subnet_pool']
144+
invisible_columns = ['use_default_subnet_pool', 'prefix_length']
145145
return sdk_utils.get_osc_show_columns_for_sdk_resource(
146146
item,
147147
column_map,

0 commit comments

Comments
 (0)