From d2521e57e3213d8c3f214f0bd5213f2b32af33a0 Mon Sep 17 00:00:00 2001 From: liuh-80 Date: Tue, 10 Oct 2023 07:43:21 +0000 Subject: [PATCH] Revert unecessary code --- src/sonic_ax_impl/mibs/ietf/rfc1213.py | 1 - src/sonic_ax_impl/mibs/ietf/rfc4363.py | 2 +- tests/test_rfc1213.py | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/sonic_ax_impl/mibs/ietf/rfc1213.py b/src/sonic_ax_impl/mibs/ietf/rfc1213.py index ad3ab2bef..e17c0c0a8 100644 --- a/src/sonic_ax_impl/mibs/ietf/rfc1213.py +++ b/src/sonic_ax_impl/mibs/ietf/rfc1213.py @@ -226,7 +226,6 @@ def reinit_data(self): """ Subclass update interface information """ - self.if_name_map, \ self.if_alias_map, \ self.if_id_map, \ diff --git a/src/sonic_ax_impl/mibs/ietf/rfc4363.py b/src/sonic_ax_impl/mibs/ietf/rfc4363.py index 2999c463f..560e4a524 100644 --- a/src/sonic_ax_impl/mibs/ietf/rfc4363.py +++ b/src/sonic_ax_impl/mibs/ietf/rfc4363.py @@ -44,7 +44,7 @@ def fdb_vlanmac(self, fdb): def reinit_connection(self): Namespace.connect_namespace_dbs(self.db_conn) - def reinit_data(self, reconnect=False): + def reinit_data(self): """ Subclass update interface information """ diff --git a/tests/test_rfc1213.py b/tests/test_rfc1213.py index 2b8c1798e..af5c2c936 100644 --- a/tests/test_rfc1213.py +++ b/tests/test_rfc1213.py @@ -12,7 +12,7 @@ modules_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.insert(0, os.path.join(modules_path, 'src')) -from sonic_ax_impl.mibs.ietf.rfc1213 import NextHopUpdater, InterfacesUpdater, ArpUpdater +from sonic_ax_impl.mibs.ietf.rfc1213 import NextHopUpdater, InterfacesUpdater class TestNextHopUpdater(TestCase):