(self, new_scalar_oids)
Use only scalar oids for following snmp calls.
Use only scalar oids for following snmp calls.
Use only scalar oids for following snmp calls .
def update_scalar_oids(self, new_scalar_oids):
        # type: (List[OID]) -> None
        """
        Use only scalar oids for following snmp calls.
        """
        if not self._is_cache_enabled():
            return
        # Do not update if we are already using scalar oids cache.
        if self._use_scalar_oids_cache:
            return
        self._all_scalar_oids = new_scalar_oids
        self._use_scalar_oids_cache = True
        self._last_ts = time.time()
def update_scalar_oids ( self , new_scalar_oids ) : # type: (List[OID]) -> None if not self . _is_cache_enabled ( ) : return # Do not update if we are already using scalar oids cache. if self . _use_scalar_oids_cache : return self . _all_scalar_oids = new_scalar_oids self . _use_scalar_oids_cache = True self . _last_ts = time . time ( )