[Kimchi-devel] [PATCH 0/3] VM Edit CPU/Memory

Rodrigo Trujillo rodrigo.trujillo at linux.vnet.ibm.com
Thu Apr 10 19:07:41 UTC 2014


This patch set implements backend side of feature "Edit VM CPU/Memory".
You can use curl to test:
    curl -X PUT -u <USER>  -H 'Content-type: application/json' 
    -H 'Accept: application/json' http://localhost:8000/vms/<VM_NAME> 
    -d '{ "cpus": <NUM>, "memory": <NUM>}'

Rodrigo Trujillo (3):
  VM Edit CPU/Memory: (Backend) Changes API.md, API.json and i18n.py
  VM Edit CPU/Memory: (Backend) Changes VM control and model
  VM Edit CPU/Memory: (Backend) Changes mockmodel and tests

 docs/API.md               |  3 +++
 src/kimchi/API.json       | 12 ++++++++++++
 src/kimchi/control/vms.py |  4 ++--
 src/kimchi/i18n.py        |  3 ++-
 src/kimchi/mockmodel.py   | 30 +++++++++++++++++-------------
 src/kimchi/model/vms.py   | 43 +++++++++++++++++++++++++++----------------
 tests/test_mockmodel.py   |  5 +++--
 tests/test_model.py       | 25 ++++++++++++++++++++-----
 tests/test_rest.py        | 32 +++++++++++++++++++++++++++++---
 9 files changed, 115 insertions(+), 42 deletions(-)

-- 
1.8.5.3




More information about the Kimchi-devel mailing list