Example #1
0
 def __init__(self, **data):
     """
     constructor of the object
     """
     LogicalDevice.__init__(self, **data)
     refAttributeNames = getRefAttributeNames(Host)
     # initialize OS List
     self.osList = []
     self.eventInpObjs_shutdown = set([])
     for (name, value) in data.items():
         if name in IHost.names() or \
            name in IEventIfEventHost.names():
             if name not in refAttributeNames:
                 setattr(self, name, value)
     self.ikRevision = __version__
     self.workflows[WfPdNagios.id] = nagios_wf = WfPdNagios()
     setattr(nagios_wf.workflowRelevantData, "ddd", 5)
     setattr(nagios_wf.workflowRelevantData, "state", "-")
     setattr(nagios_wf.workflowRelevantData, "object", self)
     setattr(nagios_wf.workflowRelevantData, "new_state", "2_start")
     nagios_wf.start()
     #health
     self._counter = {'r': 500}
     self._health = 1.0
     self._weight = {'r': 1.0}
     self._weight_user = 0.5
Example #2
0
 def __init__(self, **data):
     """
     constructor of the object
     """
     Device.__init__(self, **data)
     refAttributeNames = getRefAttributeNames(Printer)
     for (name, value) in data.items():
         if name in IPrinter.names() and \
            name not in refAttributeNames:
             setattr(self, name, value)
     self.ikRevision = __version__
Example #3
0
 def __init__(self, **data):
     """
     constructor of the object
     """
     ContactItem.__init__(self, **data)
     refAttributeNames = getRefAttributeNames(OrganisationalUnit)
     for (name, value) in data.items():
         if name in IOrganisationalUnit.names() and \
            name not in refAttributeNames:
             setattr(self, name, value)
     self.ikRevision = __version__
Example #4
0
 def __init__(self, **data):
     """
     constructor of the object
     """
     Component.__init__(self, **data)
     refAttributeNames = getRefAttributeNames(Location)
     for (name, value) in data.items():
         if name in ILocation.names():
             if name not in refAttributeNames:
                 setattr(self, name, value)
     self.ikRevision = __version__
Example #5
0
 def __init__(self, **data):
     """
     constructor of the object
     """
     Supernode.__init__(self, **data)
     refAttributeNames = getRefAttributeNames(Category)
     for (name, value) in data.items():
         if name in ICategory.names() and \
            name not in refAttributeNames:
             setattr(self, name, value)
     self.ikRevision = __version__
Example #6
0
 def __init__(self, **data):
     """
     constructor of the object
     """
     Credential.__init__(self, **data)
     refAttributeNames = getRefAttributeNames(X509Certificate)
     for (name, value) in data.items():
         if name in IX509Certificate.names():
             if name not in refAttributeNames:
                 setattr(self, name, value)
     self.ikRevision = __version__
Example #7
0
 def __init__(self, **data):
     """
     constructor of the object
     """
     PhysicalComponent.__init__(self, **data)
     refAttributeNames = getRefAttributeNames(Device)
     for (name, value) in data.items():
         if name in IDevice.names() and \
            name not in refAttributeNames:
             setattr(self, name, value)
     self.ikRevision = __version__
Example #8
0
 def __init__(self, **data):
     """
     constructor of the object
     """
     Component.__init__(self, **data)
     refAttributeNames = getRefAttributeNames(IpNet)
     for (name, value) in data.items():
         if name in IIpNet.names():
             if name not in refAttributeNames:
                 setattr(self, name, value)
     self.eventInpObjs_inward_relaying_shutdown = set([])
     self.ikRevision = __version__
Example #9
0
 def __init__(self, **data):
     """
     constructor of the object
     """
     Component.__init__(self, **data)
     refAttributeNames = getRefAttributeNames(SnmpValue)
     for (name, value) in data.items():
         if name in ISnmpValue.names():
             if name not in refAttributeNames:
                 setattr(self, name, value)
     self.ikRevision = __version__
     self.snmpIndexDict = None
     self.snmpIndexDictTimeStamp = 0.0
Example #10
0
 def __init__(self, **data):
     """
     constructor of the object
     """
     Component.__init__(self, **data)
     refAttributeNames = getRefAttributeNames(Service)
     self.product = u""
     self.ipprotocol = None
     for (name, value) in data.items():
         if name in IService.names():
             if name not in refAttributeNames:
                 setattr(self, name, value)
     self.ikRevision = __version__
Example #11
0
 def __init__(self, **data):
     """
     constructor of the object
     """
     Component.__init__(self, **data)
     refAttributeNames = getRefAttributeNames(InternalAttachment)
     filedata = data.pop('data')
     for (name, value) in data.items():
         if name in IInternalAttachment.names() and \
            name not in refAttributeNames:
             setattr(self, name, value)
     file = File(filedata, data['contentType'])
     setattr(self, 'file', file)
     self.ikRevision = __version__
Example #12
0
 def __init__(self, **data):
     """
     constructor of the object
     """
     PhysicalComponent.__init__(self, **data)
     refAttributeNames = getRefAttributeNames(Device)
     for (name, value) in data.items():
         if name in IDevice.names() and \
            name not in refAttributeNames:
             setattr(self, name, value)
     self.ikRevision = __version__
     self.workflows[WfPdNagios.id] = nagios_wf = WfPdNagios()
     setattr(nagios_wf.workflowRelevantData, "state", "-")
     setattr(nagios_wf.workflowRelevantData, "object", self)
     setattr(nagios_wf.workflowRelevantData, "new_state", "2_start")
     nagios_wf.start()
Example #13
0
 def getRefAttributeNames(self):
     return getRefAttributeNames(Location)
Example #14
0
 def getRefAttributeNames(self):
     return getRefAttributeNames(SoftwareComponent)
Example #15
0
 def getRefAttributeNames(self):
     return getRefAttributeNames(Credential)
Example #16
0
 def getRefAttributeNames(self):
     return getRefAttributeNames(PersonalComputer)
Example #17
0
 def getRefAttributeNames(self):
     return getRefAttributeNames(Product)
Example #18
0
 def getRefAttributeNames(self):
     return getRefAttributeNames(LogicalDevice)
Example #19
0
 def getRefAttributeNames(self):
     return getRefAttributeNames(Device)
Example #20
0
 def getRefAttributeNames(self):
     return getRefAttributeNames(IpAddress)
Example #21
0
 def getRefAttributeNames(self):
     return getRefAttributeNames(OrganisationalUnit)
Example #22
0
 def getRefAttributeNames(self):
     return getRefAttributeNames(Reminder)
Example #23
0
 def getRefAttributeNames(self):
     return getRefAttributeNames(Interface)
Example #24
0
 def getRefAttributeNames(self):
     return getRefAttributeNames(Host)
Example #25
0
 def getRefAttributeNames(self):
     return getRefAttributeNames(Latency)
Example #26
0
 def getRefAttributeNames(self):
     return getRefAttributeNames(ISDNPhone)
Example #27
0
 def getRefAttributeNames(self):
     return getRefAttributeNames(X509Certificate)
Example #28
0
 def getRefAttributeNames(self):
     return getRefAttributeNames(DisplayUnit)
Example #29
0
 def getRefAttributeNames(self):
     return getRefAttributeNames(Printer)
Example #30
0
 def getRefAttributeNames(self):
     return getRefAttributeNames(PhysicalMedia)