Fix some typos in the snmp.py.
Line 97: s/send/sent Line 99: s/tuple/tuples Line 136: s/oid/oids Change-Id: Iee101200fa69b5371311825a8ae0735d8543f997
This commit is contained in:
parent
121c774b41
commit
41fb1a1b0b
@ -94,9 +94,9 @@ class SNMPInspector(base.Inspector):
|
|||||||
GetRequest for oids of 'metadata'.
|
GetRequest for oids of 'metadata'.
|
||||||
|
|
||||||
For matching_type of PREFIX, SNMP request GetBulkRequest
|
For matching_type of PREFIX, SNMP request GetBulkRequest
|
||||||
would be send to get values for oids of 'metric_oid' and
|
would be sent to get values for oids of 'metric_oid' and
|
||||||
'metadata' of each item in the above mapping. And each item might
|
'metadata' of each item in the above mapping. And each item might
|
||||||
return multiple (value, metadata, extra) tuple, e.g.
|
return multiple (value, metadata, extra) tuples, e.g.
|
||||||
Suppose we have the following mapping:
|
Suppose we have the following mapping:
|
||||||
MAPPING = {
|
MAPPING = {
|
||||||
'disk.size.total': {
|
'disk.size.total': {
|
||||||
@ -133,7 +133,7 @@ class SNMPInspector(base.Inspector):
|
|||||||
self._cmdGen = cmdgen.CommandGenerator()
|
self._cmdGen = cmdgen.CommandGenerator()
|
||||||
|
|
||||||
def _query_oids(self, host, oids, cache, is_bulk):
|
def _query_oids(self, host, oids, cache, is_bulk):
|
||||||
# send GetRequest or GetBulkRequest to get oid values and
|
# send GetRequest or GetBulkRequest to get oids values and
|
||||||
# populate the values into cache
|
# populate the values into cache
|
||||||
authData = self._get_auth_strategy(host)
|
authData = self._get_auth_strategy(host)
|
||||||
transport = cmdgen.UdpTransportTarget((host.hostname,
|
transport = cmdgen.UdpTransportTarget((host.hostname,
|
||||||
|
Loading…
Reference in New Issue
Block a user