def get_pecan_resources(cls): plugin = manager.NeutronManager.get_service_plugins()[ constants.L3_ROUTER_NAT] router_controller = controllers.RoutersController() fip_controller = controllers.CollectionsController( FLOATINGIPS, FLOATINGIP) return [ pecan_utils.PecanResourceExtension(ROUTERS, router_controller, plugin), pecan_utils.PecanResourceExtension(FLOATINGIPS, fip_controller, plugin) ]
def get_pecan_resources(cls): # NOTE: plugin is not needed for quotas return [ pecan_utils.PecanResourceExtension(RESOURCE_COLLECTION, controllers.QuotasController(), None) ]
def get_pecan_resources(cls): # NOTE: quotas in PLURALS is needed because get_resources never sets it attributes.PLURALS[RESOURCE_COLLECTION] = RESOURCE_NAME # NOTE: plugin is not needed for quotas return [ pecan_utils.PecanResourceExtension(RESOURCE_COLLECTION, controllers.QuotasController(), None) ]
def get_pecan_controllers(self): ctrllr = controllers.CollectionsController(self.RESOURCE, self.RESOURCE) return [pecan_utils.PecanResourceExtension(self.RESOURCE, ctrllr)]