You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Execute interface status command
$ show int status
Describe the results you received:
Traceback (most recent call last):
File "/usr/local/bin/intfutil", line 521, in <module>
main()
File "/usr/local/bin/intfutil", line 513, in main
interface_stat.display_intf_status()
File "/usr/local/bin/intfutil", line 354, in display_intf_status
self.get_intf_status()
File "/usr/local/lib/python3.7/dist-packages/utilities_common/multi_asic.py", line 137, in wrapped_run_on_all_asics
func(self, *args, **kwargs)
File "/usr/local/bin/intfutil", line 435, in get_intf_status
self.portchannel_speed_dict = po_speed_dict(self.po_int_dict, self.db)
File "/usr/local/bin/intfutil", line 249, in po_speed_dict
interface_speed = '{}G'.format(interface_speed[:-3])
TypeError: 'NoneType' object is not subscriptable
Describe the results you expected:
Interface Lanes Speed MTU FEC Alias Vlan Oper Admin Type Asym PFC
--------------- --------------- ------- ----- ----- ------- --------------- ------ ------- -------------- ----------
Ethernet0 0,1,2,3 40G 9100 N/A etp1 routed down up N/A N/A
Ethernet4 4,5,6,7 N/A 9100 N/A etp2 PortChannel0011 down up N/A N/A
Ethernet8 8,9,10,11 N/A 9100 N/A etp3 routed down up N/A N/A
Ethernet12 12,13,14,15 N/A 9100 N/A etp4 routed down up N/A N/A
Ethernet16 16,17,18,19 N/A 9100 N/A etp5 routed down up N/A N/A
Ethernet20 20,21,22,23 N/A 9100 N/A etp6 routed down up N/A N/A
Ethernet24 24,25,26,27 N/A 9100 N/A etp7 routed up up QSFP+ or later N/A
Ethernet28 28,29,30,31 N/A 9100 N/A etp8 routed down up N/A N/A
Ethernet32 32,33,34,35 N/A 9100 N/A etp9 routed up up QSFP+ or later N/A
Ethernet36 36,37,38,39 N/A 9100 N/A etp10 routed up up QSFP+ or later N/A
Ethernet40 40,41,42,43 N/A 9100 N/A etp11 routed up up QSFP+ or later N/A
Ethernet44 44,45,46,47 N/A 9100 N/A etp12 routed up up QSFP+ or later N/A
Ethernet48 48,49,50,51 N/A 9100 N/A etp13 trunk up up QSFP+ or later N/A
Ethernet52 52,53,54,55 N/A 9100 N/A etp14 routed up up QSFP+ or later N/A
Ethernet56 56,57,58,59 N/A 9100 N/A etp15 routed down up QSFP+ or later N/A
Ethernet60 60,61,62,63 N/A 9100 N/A etp16 routed up up QSFP+ or later N/A
Ethernet64 64,65,66,67 N/A 9100 N/A etp17 routed up up QSFP+ or later N/A
Ethernet68 68,69,70,71 N/A 9100 N/A etp18 routed up up QSFP+ or later N/A
Ethernet72 72,73,74,75 N/A 9100 N/A etp19 trunk up up QSFP+ or later N/A
Ethernet76 76,77,78,79 N/A 9100 N/A etp20 routed up up QSFP+ or later N/A
Ethernet80 80,81,82,83 N/A 9100 N/A etp21 PortChannel0002 up up QSFP+ or later N/A
Ethernet84 84,85,86,87 N/A 9100 N/A etp22 routed down up N/A N/A
Ethernet88 88,89,90,91 N/A 9100 N/A etp23 routed down up N/A N/A
Ethernet92 92,93,94,95 N/A 9100 N/A etp24 routed down up N/A N/A
Ethernet96 96,97,98,99 N/A 9100 N/A etp25 routed down up N/A N/A
Ethernet100 100,101,102,103 N/A 9100 N/A etp26 routed down up N/A N/A
Ethernet104 104,105,106,107 N/A 9100 N/A etp27 routed down up N/A N/A
Ethernet108 108,109,110,111 N/A 9100 N/A etp28 routed down up N/A N/A
Ethernet112 112,113,114,115 N/A 9100 N/A etp29 routed down up N/A N/A
Ethernet116 116,117,118,119 N/A 9100 N/A etp30 routed down up N/A N/A
Ethernet120 120,121,122,123 N/A 9100 N/A etp31 routed down up N/A N/A
Ethernet124 124,125,126,127 N/A 9100 N/A etp32 routed down up N/A N/A
PortChannel0002 N/A N/A 9100 N/A N/A routed up up N/A N/A
PortChannel0011 N/A N/A 9100 N/A N/A routed down up N/A N/A
Additional information you deem important (e.g. issue happens only occasionally):
The redis LAG_TABLE entry is missing speed information and when I tried execute intfutil it returned None, which caused the script to crash. In other cases with Ethernet interfaces, PORT_TABLE also doesn't contain information about the port speed by default, but it works well and shows N/A. Therefore, I suggested a PR in which, with such an error, the script does not crash, but returns N/A.
Description
Adding portchannels breaks the script for showing interface status
Steps to reproduce the issue:
$ sudo config portchannel add PortChannel0011
$ show int status
Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
The text was updated successfully, but these errors were encountered: