[libvirt] [dbus PATCH v2 00/17] Implement and Test Interface APIs

Anya Harter aharter at redhat.com
Fri Jul 20 18:34:44 UTC 2018


original patch series cover letter:
    https://www.redhat.com/archives/libvir-list/2018-July/msg00364.html
    
changes since v1:
    * all commits "make" and "make check"
    * MACString property => MAC property
    * various corrections
    * add tests for all but virConnectListAllInterfaces, 
                            virInterfaceChangeBegin, 
                            virInterfaceChangeCommit, 
                            and virInterfaceChangeRollback
    * commits were reordered to introduce functions before they are 
      needed by the test suite

https://libvirt.org/html/libvirt-libvirt-interface.html

The following functions have been implemented:

    - virConnectListAllInterfaces       (connect method)
    - virInterfaceChangeBegin           (connect method)
    - virInterfaceChangeCommit          (connect method)
    - virInterfaceChangeRollback        (connect method)
    - virInterfaceCreate                (interface method)
    - virInterfaceDefineXML             (connect method)
    - virInterfaceDestroy               (interface method)
    - virInterfaceGetMACString          (property)
    - virInterfaceGetName               (property)
    - virInterfaceGetXMLDesc            (interface method)
    - virInterfaceIsActive              (property)
    - virInterfaceLookupByMACString     (connect method)
    - virInterfaceLookupByName          (connect method)
    - virInterfaceUndefine              (interface method)


Anya Harter (17):
  Introduce Interface Interface
  Implement InterfaceDefineXML method for Connect Interface
  Implement Create method for Interface Interface
  Implement Destroy method for Interface Interface
  Introduce Interface Tests & Test Create method for Interface Interface
  Test Destroy method for Interface Interface
  Implement Undefine method for Interface Interface
  Implement GetXMLDesc method for Interface Interface
  Implement Name property for Interface Interface
  Implement MAC property for Interface Interface
  Implement Active property for Interface Interface
  Implement ListInterfaces method for Connect Interface
  Implement InterfaceChangeBegin method for Connect Interface
  Implement InterfaceChangeCommit method for Connect Interface
  Implement InterfaceChangeRollback method for Connect Interface
  Implement InterfaceLookupByName method for Connect Interface
  Implement InterfaceLookupByMAC method for Connect Interface

 data/Makefile.am               |   1 +
 data/org.libvirt.Connect.xml   |  40 ++++++
 data/org.libvirt.Interface.xml |  42 ++++++
 src/Makefile.am                |   2 +
 src/connect.c                  | 198 ++++++++++++++++++++++++++
 src/connect.h                  |   1 +
 src/interface.c                | 249 +++++++++++++++++++++++++++++++++
 src/interface.h                |   9 ++
 src/util.c                     |  35 +++++
 src/util.h                     |  15 ++
 tests/Makefile.am              |   1 +
 tests/libvirttest.py           |  12 ++
 tests/test_connect.py          |  17 +++
 tests/test_interface.py        |  39 ++++++
 tests/xmldata.py               |  12 ++
 15 files changed, 673 insertions(+)
 create mode 100644 data/org.libvirt.Interface.xml
 create mode 100644 src/interface.c
 create mode 100644 src/interface.h
 create mode 100755 tests/test_interface.py

-- 
2.17.1




More information about the libvir-list mailing list