Display full interface description on short output
This commit is contained in:
parent
59e8237886
commit
b8e0540f5e
1 changed files with 2 additions and 1 deletions
|
@ -75,7 +75,8 @@ def search_ports(args):
|
|||
short_hostname = device['hostname'].split(".",1)[0]
|
||||
print("(0x(B %-25.25s (0x(B %-16.16s (0x(B %-*.*s (0x(B" %
|
||||
(short_hostname, port['port_label_short'], value_cols,
|
||||
value_cols, port['port_descr_descr'] or port['ifAlias']))
|
||||
value_cols, port['ifAlias']))
|
||||
#value_cols, port['port_descr_descr'] or port['ifAlias']))
|
||||
|
||||
else:
|
||||
address = call_api(params, 'address/?device_id=%s&interface=%s' % (port['device_id'], port['port_label_short']))
|
||||
|
|
Loading…
Reference in a new issue