def my_oids(): oids_dict = { 'running_last_changed': oids.get('ccmHistoryRunningLastChanged'), 'running_last_saved': oids.get('ccmHistoryRunningLastSaved'), 'startup_last_changed': oids.get('ccmHistoryStartupLastChanged'), 'uptime': oids.get('sysUptime'), } return myDict(oids_dict)
def my_oids(self): oids_dict = {} oids_desc = [ 'ifAlias', 'ifDescr', ] oids_desc.extend(self._oids_in_groups()) for oid in oids_desc: oids_dict.update({oid: oids.get(oid)}) return oids_dict