Skip to content

Commit

Permalink
netsnmp expects the Timeout in microsec, hence converting sec to usec…
Browse files Browse the repository at this point in the history
… before

passing to netsnmp

Change-Id: I011b1166e27c283bff061124a19e56097c66cf91
Closes-Bug: #1487240
  • Loading branch information
Raj Reddy committed Aug 26, 2015
1 parent 65ae5c9 commit c8932d8
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -135,7 +135,8 @@ def populate_cfg(devicelist):
if snmp.get_retries():
nd['Retries'] = snmp.get_retries()
if snmp.get_timeout():
nd['Timeout'] = snmp.get_timeout()
#timeout converted from s to us
nd['Timeout'] = snmp.get_timeout()*1000000
if nd['Version'] in (1, 2):
nd['Community'] = snmp.get_v2_community()
elif nd['Version'] == 3:
Expand Down

0 comments on commit c8932d8

Please sign in to comment.