Skip to content

Commit 2b5a67f

Browse files
Merge pull request #1435 from edersondisouza/raritan-no-max-outlets
driver/power: Remove check for maximum number of outlets for raritan
2 parents ccf7a3f + 11cce1d commit 2b5a67f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

labgrid/driver/power/raritan.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,16 @@
1010

1111

1212
OID = ".1.3.6.1.4.1.13742.6.4.1.2.1"
13-
NUMBER_OF_OUTLETS = 16
1413

1514

1615
def power_set(host, port, index, value):
17-
assert 1 <= int(index) <= NUMBER_OF_OUTLETS
18-
1916
_snmp = SimpleSNMP(host, 'private', port=port)
2017
outlet_control_oid = "{}.2.1.{}".format(OID, index)
2118

2219
_snmp.set(outlet_control_oid, str(int(value)))
2320

2421

2522
def power_get(host, port, index):
26-
assert 1 <= int(index) <= NUMBER_OF_OUTLETS
27-
2823
_snmp = SimpleSNMP(host, 'public', port=port)
2924
output_status_oid = "{}.3.1.{}".format(OID, index)
3025

0 commit comments

Comments
 (0)