From 1577f4c1588fe6d4de83733b9ac743cb41143f2f Mon Sep 17 00:00:00 2001 From: Qi Luo Date: Wed, 8 Aug 2018 11:46:39 -0700 Subject: [PATCH] Fix rfc3433 unit test (#77) --- src/sonic_ax_impl/mibs/ietf/rfc3433.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sonic_ax_impl/mibs/ietf/rfc3433.py b/src/sonic_ax_impl/mibs/ietf/rfc3433.py index 56dbe8cb6503..df1e3ee2afa9 100644 --- a/src/sonic_ax_impl/mibs/ietf/rfc3433.py +++ b/src/sonic_ax_impl/mibs/ietf/rfc3433.py @@ -262,6 +262,8 @@ def __init__(self): self.ent_phy_sensor_value_map = {} self.ent_phy_sensor_oper_state_map = {} + self.transceiver_dom = [] + def reinit_data(self): """ Reinit data, clear cache @@ -278,8 +280,6 @@ def reinit_data(self): self.TRANSCEIVER_DOM_KEY_PATTERN) if transceiver_dom_encoded: self.transceiver_dom = [entry.decode() for entry in transceiver_dom_encoded] - else: - self.transceiver_dom = [] def update_data(self): """