From 11cce1d27551e61853c225a686f74f7bebab37bb Mon Sep 17 00:00:00 2001 From: Ederson de Souza Date: Thu, 27 Jun 2024 15:46:40 -0700 Subject: [PATCH] driver/power: Remove check for maximum number of outlets for raritan No need to ensure a maximum number - new models can have more outlets. Signed-off-by: Ederson de Souza --- labgrid/driver/power/raritan.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/labgrid/driver/power/raritan.py b/labgrid/driver/power/raritan.py index 1fa7b2385..597e72d0b 100644 --- a/labgrid/driver/power/raritan.py +++ b/labgrid/driver/power/raritan.py @@ -10,12 +10,9 @@ OID = ".1.3.6.1.4.1.13742.6.4.1.2.1" -NUMBER_OF_OUTLETS = 16 def power_set(host, port, index, value): - assert 1 <= int(index) <= NUMBER_OF_OUTLETS - _snmp = SimpleSNMP(host, 'private', port=port) outlet_control_oid = "{}.2.1.{}".format(OID, index) @@ -23,8 +20,6 @@ def power_set(host, port, index, value): def power_get(host, port, index): - assert 1 <= int(index) <= NUMBER_OF_OUTLETS - _snmp = SimpleSNMP(host, 'public', port=port) output_status_oid = "{}.3.1.{}".format(OID, index)