We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a3a221 commit 357923dCopy full SHA for 357923d
device/dell/x86_64-dell_z9100_c2538-r0/plugins/sfputil.py
@@ -365,11 +365,11 @@ def check_interrupts(self, port_dict):
365
366
port = self.port_start
367
while port <= self.port_end:
368
- if interrupt_reg & (1 << port):
+ if interrupt_reg & (1 << (port-1)):
369
# update only if atleast one port has generated
370
# interrupt
371
is_port_dict_updated = True
372
- if status_reg & (1 << port):
+ if status_reg & (1 << (port-1)):
373
# status reg 1 => optics is removed
374
port_dict[port] = '0'
375
else:
0 commit comments