From: Barış Metin Date: Mon, 10 May 2010 15:28:41 +0000 (+0000) Subject: add ipmi to prottypemap X-Git-Tag: pcucontrol-1.0-4~2 X-Git-Url: http://git.onelab.eu/?p=pcucontrol.git;a=commitdiff_plain;h=c83358827d138b8d2907d2256cdf879b1b09936a;hp=efe91a452c6edd55ada16c36b76a39a498ad43bc add ipmi to prottypemap --- 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, }