
From: ShaoHe Feng <shaohef@linux.vnet.ibm.com> $ curl -u user -H 'Accept: application/json' -H 'Content-type: application/json' \ http://localhost:800/vms/test-vm-8/ifaces/ [ { "mac":"52:54:00:00:00:08", "model":"virtio", "type":"network", "network":"default", "name":"52:54:00:00:00:08" } ] $ curl -u user -H 'Accept: application/json' -H 'Content-type: application/json' \ http://localhost:800/vms/test-vm-8/ifaces/52:54:00:00:00:08 { "mac":"52:54:00:00:00:08", "model":"virtio", "type":"network", "network":"default", "name":"52:54:00:00:00:08" } ShaoHe Feng (7): Add a control.vm module add a method to load vms sub collection automatically VM supports interfaces: update API VM supports interfaces: update model VM supports interfaces: update controller VM supports interfaces: update mockmodel VM supports interfaces: update testcase Makefile.am | 1 + configure.ac | 1 + contrib/kimchi.spec.fedora.in | 1 + contrib/kimchi.spec.suse.in | 1 + docs/API.md | 47 ++++++++++++++++++++++++++++ src/kimchi/control/Makefile.am | 2 ++ src/kimchi/control/vm/Makefile.am | 32 +++++++++++++++++++ src/kimchi/control/vm/__init__.py | 66 +++++++++++++++++++++++++++++++++++++++ src/kimchi/control/vm/ifaces.py | 48 ++++++++++++++++++++++++++++ src/kimchi/control/vms.py | 9 ++++++ src/kimchi/mockmodel.py | 31 ++++++++++++++++++ src/kimchi/model.py | 31 ++++++++++++++++++ tests/test_model.py | 19 +++++++++++ tests/test_rest.py | 31 ++++++++++++++++++ 14 files changed, 320 insertions(+) create mode 100644 src/kimchi/control/vm/Makefile.am create mode 100644 src/kimchi/control/vm/__init__.py create mode 100644 src/kimchi/control/vm/ifaces.py -- 1.8.4.2