Пример #1
0
 def notification_endpoints(self):
     return [
         cnotification.CapacityNotificationEndpoint(self.fake_cdmc),
         cnotification.VolumeCreateEnd(self.fake_cdmc),
         cnotification.VolumeUpdateEnd(self.fake_cdmc),
         cnotification.VolumeDeleteEnd(self.fake_cdmc),
         cnotification.VolumeAttachEnd(self.fake_cdmc),
         cnotification.VolumeDetachEnd(self.fake_cdmc),
         cnotification.VolumeResizeEnd(self.fake_cdmc),
     ]
Пример #2
0
    def notification_endpoints(self):
        """Associated notification endpoints

        :return: Associated notification endpoints
        :rtype: List of :py:class:`~.EventsNotificationEndpoint` instances
        """
        return [
            cinder.CapacityNotificationEndpoint(self),
            cinder.VolumeCreateEnd(self),
            cinder.VolumeDeleteEnd(self),
            cinder.VolumeUpdateEnd(self),
            cinder.VolumeAttachEnd(self),
            cinder.VolumeDetachEnd(self),
            cinder.VolumeResizeEnd(self)
        ]