Cleanup baymodel operations in conductor api

Cleanup baymodel operations in conductor/api.py which are never
been called.

Magnum do not need to call conductor (rpc call) to do any operation
for baymodel. All baymodel related operations are DB operation.

Closes-Bug: #1517338
Change-Id: If5078efd71eaf57b8700e0c8097c89386583cf02
This commit is contained in:
Eli Qiao 2015-11-18 15:17:33 +08:00 committed by Jay Lau (Guangya Liu)
parent a2b65f0df9
commit 25fd0cdeeb
1 changed files with 0 additions and 16 deletions

View File

@ -29,22 +29,6 @@ class API(rpc_service.API):
super(API, self).__init__(transport, context,
topic=cfg.CONF.conductor.topic)
# Bay Model Operations
def baymodel_create(self, context, baymodel):
return baymodel.create(context)
def baymodel_list(self, context, limit, marker, sort_key, sort_dir):
return objects.BayModel.list(context, limit, marker,
sort_key, sort_dir)
def baymodel_delete(self, context, uuid):
baymodel = objects.BayModel.get_by_uuid(uuid)
return baymodel.destroy()
def baymodel_show(self, context, uuid):
return objects.BayModel.get_by_uuid(uuid)
# Bay Operations
def bay_create(self, bay, bay_create_timeout):