Exemple #1
0
 def get_controller_extensions(self):
     exts = []
     for class_ in (VolumeAdminController, SnapshotAdminController,
                    BackupAdminController):
         controller = class_()
         extension = extensions.ControllerExtension(self, class_.collection,
                                                    controller)
         exts.append(extension)
     return exts
Exemple #2
0
 def get_controller_extensions(self):
     controller = ExtendedSnapshotAttributesController()
     extension = extensions.ControllerExtension(self, 'snapshots',
                                                controller)
     return [extension]
 def get_controller_extensions(self):
     controller = VolumeImageMetadataController()
     extension = extensions.ControllerExtension(self, 'volumes', controller)
     return [extension]
 def get_controller_extensions(self):
     controller = VolumeTenantAttributeController()
     extension = extensions.ControllerExtension(self, 'volumes', controller)
     return [extension]
Exemple #5
0
 def get_controller_extensions(self):
     controller = SchedulerHintsController()
     ext = extensions.ControllerExtension(self, 'volumes', controller)
     return [ext]
 def get_controller_extensions(self):
     controller = VolumeTypeEncryptionController()
     extension = extensions.ControllerExtension(self, 'types', controller)
     return [extension]
Exemple #7
0
 def get_controller_extensions(self):
     controller = UsedLimitsController()
     extension = extensions.ControllerExtension(self, 'limits', controller)
     return [extension]
Exemple #8
0
 def get_controller_extensions(self):
     controller = VolumeActionsController()
     extension = extensions.ControllerExtension(self, 'volumes', controller)
     return [extension]
Exemple #9
0
 def get_controller_extensions(self):
     controller = SnapshotActionsController()
     extension = extensions.ControllerExtension(self, 'snapshots',
                                                controller)
     return [extension]