Skip to content

Commit a07da53

Browse files
Removed unused variables in rfc2863.py (sonic-net#237)
**- What I did** Removed unused variables rif_port_map and port_rif_map in rfc2863.py **- How I did it** Edited rfc2863.py as requested by @qiluo-msft in merged PR sonic-net#218. **- How to verify it** pytest-3 test_interfaces.py and pytest-3 namespace/test_interfaces.py in sonic-snmpagent/tests. **- Description for the changelog** Removed unused variables.
1 parent c2d4945 commit a07da53

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/sonic_ax_impl/mibs/ietf/rfc2863.py

-4
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ def __init__(self):
9393
self.mgmt_alias_map = {}
9494
self.vlan_oid_name_map = {}
9595
self.vlan_name_map = {}
96-
self.rif_port_map = {}
9796
self.if_counters = {}
9897
self.if_range = []
9998
self.if_name_map = {}
@@ -128,9 +127,6 @@ def reinit_data(self):
128127
self.vlan_oid_sai_map, \
129128
self.vlan_oid_name_map = Namespace.get_sync_d_from_all_namespace(mibs.init_sync_d_vlan_tables, self.db_conn)
130129

131-
self.rif_port_map, \
132-
self.port_rif_map = Namespace.get_sync_d_from_all_namespace(mibs.init_sync_d_rif_tables, self.db_conn)
133-
134130
self.if_range = sorted(list(self.oid_name_map.keys()) +
135131
list(self.oid_lag_name_map.keys()) +
136132
list(self.mgmt_oid_name_map.keys()) +

0 commit comments

Comments
 (0)