add ipmi to prottypemap
Barış Metin [Mon, 10 May 2010 15:28:41 +0000 (15:28 +0000)]
pcucontrol/models/OpenIPMI.py
pcucontrol/reboot.py

index f52ea39..38ca7d8 100644 (file)
@@ -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  "
index d4f8be6..f31f690 100755 (executable)
@@ -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,
                }