From b8e0540f5e6d5f69ca757b8178b3ca4e91e7f685 Mon Sep 17 00:00:00 2001 From: Benjamin Collet Date: Thu, 22 Aug 2019 16:41:09 +0200 Subject: [PATCH] Display full interface description on short output --- client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client.py b/client.py index 71638b9..ed020f6 100755 --- a/client.py +++ b/client.py @@ -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']))