From c83358827d138b8d2907d2256cdf879b1b09936a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Mon, 10 May 2010 15:28:41 +0000 Subject: [PATCH] add ipmi to prottypemap --- pcucontrol/models/OpenIPMI.py | 2 +- pcucontrol/reboot.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pcucontrol/models/OpenIPMI.py b/pcucontrol/models/OpenIPMI.py index f52ea39..38ca7d8 100644 --- a/pcucontrol/models/OpenIPMI.py +++ b/pcucontrol/models/OpenIPMI.py @@ -6,7 +6,7 @@ class OpenIPMI(PCUControl): supported_ports = [80,443,623] # TODO: get exit codes to determine success or failure... - def run_https(self, node_port, dryrun): + def run_ipmi(self, node_port, dryrun): if not dryrun: cmd = "ipmitool -I lanplus -H %s -U %s -P '%s' power cycle " diff --git a/pcucontrol/reboot.py b/pcucontrol/reboot.py index d4f8be6..f31f690 100755 --- a/pcucontrol/reboot.py +++ b/pcucontrol/reboot.py @@ -106,6 +106,7 @@ class Transport: HTTP = "http" HTTPS = "https" IPAL = "ipal" + IPMI = "ipmi" DRAC = "drac" AMT = "amt" @@ -118,6 +119,7 @@ class Transport: 443 : HTTPS, 80 : HTTP, 9100 : IPAL, + 623 : IPMI, 16992 : AMT, } -- 2.43.0