Skip to content

Commit

Permalink
get_interfaces() method modified according to #28 in snmp.OpenWRT
Browse files Browse the repository at this point in the history
  • Loading branch information
bucciarellialessandro committed May 10, 2014
1 parent b55ad67 commit b28b940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netengine/backends/snmp/openwrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def get_interfaces(self):
"""
interfaces = []
value_to_get = '1.3.6.1.2.1.2.2.1.2.'
for i in range (1,8):
for i in self._value_to_retrieve():
value_to_get1 = value_to_get+str(i)
if value_to_get1:
interfaces.append(self.get_value(value_to_get1))
Expand Down

0 comments on commit b28b940

Please sign in to comment.