[devices]: Fixing get_transceiver_change_event for z9100 (#2712)

This commit is contained in:
Sudharsan D.G 2019-03-27 18:38:01 -07:00 committed by lguohan
parent 3a3a221a95
commit 357923d6ea

View File

@ -365,11 +365,11 @@ class SfpUtil(SfpUtilBase):
port = self.port_start
while port <= self.port_end:
if interrupt_reg & (1 << port):
if interrupt_reg & (1 << (port-1)):
# update only if atleast one port has generated
# interrupt
is_port_dict_updated = True
if status_reg & (1 << port):
if status_reg & (1 << (port-1)):
# status reg 1 => optics is removed
port_dict[port] = '0'
else: