Exemplo 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__
Exemplo 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()
Exemplo n.º 3
0
 def store_refs(self, **data):
     PhysicalComponent.store_refs(self, **data)
     refAttributeNames = self.getRefAttributeNames()
     for (name, value) in data.items():
         if name in refAttributeNames:
             setattr(self, name, value)