Skip to content

Commit

Permalink
[show vlan brief] Support 'alias' interface naming mode (#497)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsvanduyn authored and jleveque committed Apr 5, 2019
1 parent bafebf9 commit 5ae30d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions show/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1472,8 +1472,12 @@ def brief(verbose):
ports_value = str(key[1])
ports_tagging = vlan_ports_data[key]['tagging_mode']
if ports_key in vlan_ports_dict:
if get_interface_mode() == "alias":
ports_value = iface_alias_converter.name_to_alias(ports_value)
vlan_ports_dict[ports_key].append(ports_value)
else:
if get_interface_mode() == "alias":
ports_value = iface_alias_converter.name_to_alias(ports_value)
vlan_ports_dict[ports_key] = [ports_value]
if ports_key in vlan_tagging_dict:
vlan_tagging_dict[ports_key].append(ports_tagging)
Expand Down

0 comments on commit 5ae30d2

Please sign in to comment.