Cells: Add cells API extension
Enables cells-related functionality such as adding neighbor cells, listing neighbor cells, and showing the capabilities of the local cell. Implements blueprint nova-compute-cells DocImpact Change-Id: Iacc1e68721a7867aeaf233903cbe6d18f09ad96e
This commit is contained in:
@@ -1056,11 +1056,11 @@ class CellCommands(object):
|
||||
ctxt = context.get_admin_context()
|
||||
db.cell_create(ctxt, values)
|
||||
|
||||
@args('--cell_id', dest='cell_id', metavar='<cell_id>',
|
||||
help='ID of the cell to delete')
|
||||
def delete(self, cell_id):
|
||||
@args('--cell_name', dest='cell_name', metavar='<cell_name>',
|
||||
help='Name of the cell to delete')
|
||||
def delete(self, cell_name):
|
||||
ctxt = context.get_admin_context()
|
||||
db.cell_delete(ctxt, cell_id)
|
||||
db.cell_delete(ctxt, cell_name)
|
||||
|
||||
def list(self):
|
||||
ctxt = context.get_admin_context()
|
||||
|
||||
Reference in New Issue
Block a user