Ejemplo n.º 1
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__
Ejemplo n.º 2
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()