Example #1
0
    def setup(self):
        for i in range(0, OpenIPMI.MAX_USED_CHANNELS) + [15]:
            chi = self.info[i]
            if (len(chi) > 0):
                cdata = MCChanData(self, i)
                ch = self.Append(self.treeroot, str(i), [], cdata)
                if ("info" in chi):
                    info = chi["info"]
                    v = [ 0 ]
                    rv = info.info.get_medium(v)
                    if (not rv):
                        cdata.medium = v[0]
                        s = OpenIPMI.channel_medium_string(v[0])
                        self.SetColumn(ch, s, 1)
                        pass
                    self.add_info(ch, info)
                    pass
                if ("v" in chi):
                    self.add_access(ch, chi["v"])
                    pass
                if ("n" in chi):
                    self.add_access(ch, chi["n"])
                    pass
                pass
            pass

        self.AfterDone()
        return
Example #2
0
    def setup(self):
        for i in range(0, OpenIPMI.MAX_USED_CHANNELS) + [15]:
            chi = self.info[i]
            if (len(chi) > 0):
                cdata = MCChanData(self, i)
                ch = self.Append(self.treeroot, str(i), [], cdata)
                if ("info" in chi):
                    info = chi["info"]
                    v = [0]
                    rv = info.info.get_medium(v)
                    if (not rv):
                        cdata.medium = v[0]
                        s = OpenIPMI.channel_medium_string(v[0])
                        self.SetColumn(ch, s, 1)
                        pass
                    self.add_info(ch, info)
                    pass
                if ("v" in chi):
                    self.add_access(ch, chi["v"])
                    pass
                if ("n" in chi):
                    self.add_access(ch, chi["n"])
                    pass
                pass
            pass

        self.AfterDone()
        return
Example #3
0
 def add_info(self, ch, oinfo):
     info = oinfo.info
     item = self.Append(ch, "Info", [])
     v = [ 0 ]
     rv = info.get_medium(v)
     if (not rv):
         self.add_data(item, "Medium",
                       [OpenIPMI.channel_medium_string(v[0])])
         pass
     rv = info.get_protocol_type(v)
     if (not rv):
         self.add_data(item, "Protocol Type",
                       [OpenIPMI.channel_protocol_string(v[0])])
         pass
     rv = info.get_session_support(v)
     if (not rv):
         self.add_data(item, "Session Support",
                       [OpenIPMI.channel_session_support_string(v[0])])
         pass
     v = info.get_vendor_id()
     if (v):
         self.add_data(item, "Vendor ID", [v])
         pass
     v = info.get_aux_info()
     if (v):
         self.add_data(item, "Aux Info", [v])
         pass
     return
Example #4
0
 def add_info(self, ch, oinfo):
     info = oinfo.info
     item = self.Append(ch, "Info", [])
     v = [0]
     rv = info.get_medium(v)
     if (not rv):
         self.add_data(item, "Medium",
                       [OpenIPMI.channel_medium_string(v[0])])
         pass
     rv = info.get_protocol_type(v)
     if (not rv):
         self.add_data(item, "Protocol Type",
                       [OpenIPMI.channel_protocol_string(v[0])])
         pass
     rv = info.get_session_support(v)
     if (not rv):
         self.add_data(item, "Session Support",
                       [OpenIPMI.channel_session_support_string(v[0])])
         pass
     v = info.get_vendor_id()
     if (v):
         self.add_data(item, "Vendor ID", [v])
         pass
     v = info.get_aux_info()
     if (v):
         self.add_data(item, "Aux Info", [v])
         pass
     return