-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
The class docsis in this file takes mibs_paths as a parameter, but currently no caller actually does that. I'm willing to change every call to pass in mibs_paths so that we can remove the import board here:
from devices import board
if mibs_paths is None and hasattr(board, 'mibs_paths'):
default = os.path.expandvars('/home/$USER/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp')
mibs_path_arg = "-M " + default
for mibs_path in board.mibs_paths:
mibs_path_arg = mibs_path_arg + ":" + mibs_path
self.mibs_path_arg = mibs_path_argBasically we need to avoid importing dynamic things - things that can change.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels