diff --git a/ipmibase.py b/ipmibase.py index abb86a4e..e92de3ad 100644 --- a/ipmibase.py +++ b/ipmibase.py @@ -104,7 +104,7 @@ class IPMISession: self.sockaddr=None #when we confirm a working sockaddr, put it here to skip getaddrinfo self.tabooseq={} #this tracks netfn,command,seqlun combinations that were retried so that #we don't loop around and reuse the same request data and cause potential ambiguity in return - self.ipmi15only=1 #default to supporting ipmi 2.0. Strictly by spec, this should gracefully be backwards compat, but some 1.5 implementations checked reserved bits + self.ipmi15only=0 #default to supporting ipmi 2.0. Strictly by spec, this should gracefully be backwards compat, but some 1.5 implementations checked reserved bits def _checksum(self,*data): #Two's complement over the data csum=sum(data) csum=csum^0xff @@ -170,7 +170,9 @@ class IPMISession: if (self.ipmiversion == 2.0): message.append(payload_type) if (payload_type == 2): - pass #TODO: OEM payloads, currently not supported + raise Exception("TODO: OEM Payloads") + elif (payload_type == 1): + raise Exception("TODO: SOL Payload") message += unpack("!4B",pack("