Browse Source

the type is internal to this class...

main
John-Mark Gurney 4 years ago
parent
commit
cce8384d3c
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      bitelab/snmp.py

+ 3
- 3
bitelab/snmp.py View File

@@ -85,9 +85,9 @@ class SNMPPower(Power):
return await snmpget(self.host,
'pethPsePortAdminEnable.1.%d' % self.port, 'bool')

async def setvalue(self, typ, v):
async def setvalue(self, v):
return await snmpset(self.host,
'pethPsePortAdminEnable.1.%d' % self.port, typ, v)
'pethPsePortAdminEnable.1.%d' % self.port, 'bool', v)


class TestSNMPWrapper(unittest.IsolatedAsyncioTestCase):
@@ -166,7 +166,7 @@ class TestSNMPPower(unittest.IsolatedAsyncioTestCase):
'bool')

# that when setvalue is called
await sp.setvalue('bool', True)
await sp.setvalue(True)

# calls snmpset w/ the correct args
ss.assert_called_with('host', 'pethPsePortAdminEnable.1.5',


Loading…
Cancel
Save