Skip to content

Commit d12940c

Browse files
committed
evpn: Fix evpn_vni column condition
The following SDK patch [1] now always has the evpn_vni router attribute defined but can be None. Even when it's None, the column gets populated. The original patch with change-id I8747f3cb753a115e7955b0a0ea136431fdade0dd missed this condition. Related-Bug: #2144617 [1] https://review.opendev.org/c/openstack/openstacksdk/+/991685 Change-Id: I0dffaeb4c3315c0ed44881135b024460cc4538b7 Signed-off-by: Jakub Libosvar <jlibosva@redhat.com>
1 parent 05249ce commit d12940c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openstackclient/network/v2/router.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def _get_columns(
8888
if item.is_distributed is None:
8989
hidden_columns.append('is_distributed')
9090
column_map.pop('is_distributed')
91-
if not hasattr(item, 'evpn_vni'):
91+
if not hasattr(item, 'evpn_vni') or item.evpn_vni is None:
9292
hidden_columns.append('evpn_vni')
9393
return utils.get_osc_show_columns_for_sdk_resource(
9494
item, column_map, hidden_columns

0 commit comments

Comments
 (0)