[Libvirt-cim] [PATCH V7 0/7] vlan 802.1.q extention

Wenchao Xia xiawenc at linux.vnet.ibm.com
Tue Feb 14 08:56:00 UTC 2012


    These patches add vlan extention of host network. Many code are used to
build up the network model, which is very similar to ComputerSystem.
    Patch 1 contains function library codes and C test program.
    From Patch 2 to 6, it is almost readonly codes, except VESS state change.
    Patch 7 are CIM model codes of writing network configuration.

Limit:
    Now only DHCP on/off are supported about IP settings, mannually setting of
address and netmask are not considered.

v7: added portion of code about writing.
v6: added CIM model for readonly usage. Code changes according to comments.
v5: switched to libvirt API about to enable readonly library.
v4: using netlink 1.0 as implemention to avoid runtime errors.
v3: using netlink 3.0 and libbridge as implemention.
v2: code fix and bug fix.
v1: using string parsing and direct accessing with host configuration file,
which require some utilities installed, such as IP, VCONFIG.

git repository:
    git://gitorious.org/libvirt-cim_develop/libvirt-cim_develop.git
    branch vlan_v7

Wenchao Xia (7):
  vlan extention - function libarary
  vlan extention - CIM Model - helper and Makefile
  vlan extention - CIM Model - VESS
  vlan extention - CIM Model - VESSSD
  vlan extention - CIM Model - EthernetPort
  vlan extention - CIM Model - EASD
  vlan extention - CIM Model - VESSMS

 Makefile.am                                        |   16 +-
 libxkutil/Makefile.am                              |   14 +-
 libxkutil/misc_util.c                              |   48 +
 libxkutil/misc_util.h                              |    3 +
 libxkutil/network_model_helper.c                   |  473 +++++++
 libxkutil/network_model_helper.h                   |  101 ++
 libxkutil/network_parsing.c                        | 1309 ++++++++++++++++++++
 libxkutil/network_parsing.h                        |  217 ++++
 libxkutil/network_parsing_test.c                   |  184 +++
 libxkutil/xmlgen.c                                 |    4 +-
 libxkutil/xmlgen.h                                 |    4 +
 schema/EthernetPort.mof                            |    4 +
 schema/EthernetPort.registration                   |    3 +
 schema/EthernetPortAllocationSettingData.mof       |   22 +
 .../EthernetPortAllocationSettingData.registration |    3 +
 schema/VirtualEthernetSwitchSystem.mof             |   10 +
 schema/VirtualEthernetSwitchSystem.registration    |    3 +
 ...irtualEthernetSwitchSystemManagementService.mof |   14 +
 ...ernetSwitchSystemManagementService.registration |    3 +
 schema/VirtualEthernetSwitchSystemSettingData.mof  |   33 +
 ...ualEthernetSwitchSystemSettingData.registration |    3 +
 src/Makefile.am                                    |   29 +-
 src/Virt_EASD.c                                    |  711 +++++++++++
 src/Virt_EASD.h                                    |   59 +
 src/Virt_EthernetPort.c                            |  561 +++++++++
 src/Virt_EthernetPort.h                            |   58 +
 src/Virt_HostSystem.c                              |    2 +-
 src/Virt_HostSystem.h                              |    2 +
 src/Virt_VESSSD.c                                  |  392 ++++++
 src/Virt_VESSSD.h                                  |   39 +
 src/Virt_VirtualEthernetSwitchSystem.c             |  477 +++++++
 src/Virt_VirtualEthernetSwitchSystem.h             |   52 +
 ..._VirtualEthernetSwitchSystemManagementService.c | 1289 +++++++++++++++++++
 ..._VirtualEthernetSwitchSystemManagementService.h |   31 +
 src/Virt_VirtualSystemManagementService.c          |    2 +-
 src/Virt_VirtualSystemManagementService.h          |    4 +
 36 files changed, 6167 insertions(+), 12 deletions(-)
 create mode 100644 libxkutil/network_model_helper.c
 create mode 100644 libxkutil/network_model_helper.h
 create mode 100644 libxkutil/network_parsing.c
 create mode 100644 libxkutil/network_parsing.h
 create mode 100644 libxkutil/network_parsing_test.c
 create mode 100644 schema/EthernetPort.mof
 create mode 100644 schema/EthernetPort.registration
 create mode 100644 schema/EthernetPortAllocationSettingData.mof
 create mode 100644 schema/EthernetPortAllocationSettingData.registration
 create mode 100644 schema/VirtualEthernetSwitchSystem.mof
 create mode 100644 schema/VirtualEthernetSwitchSystem.registration
 create mode 100644 schema/VirtualEthernetSwitchSystemManagementService.mof
 create mode 100644 schema/VirtualEthernetSwitchSystemManagementService.registration
 create mode 100644 schema/VirtualEthernetSwitchSystemSettingData.mof
 create mode 100644 schema/VirtualEthernetSwitchSystemSettingData.registration
 create mode 100644 src/Virt_EASD.c
 create mode 100644 src/Virt_EASD.h
 create mode 100644 src/Virt_EthernetPort.c
 create mode 100644 src/Virt_EthernetPort.h
 create mode 100644 src/Virt_VESSSD.c
 create mode 100644 src/Virt_VESSSD.h
 create mode 100644 src/Virt_VirtualEthernetSwitchSystem.c
 create mode 100644 src/Virt_VirtualEthernetSwitchSystem.h
 create mode 100644 src/Virt_VirtualEthernetSwitchSystemManagementService.c
 create mode 100644 src/Virt_VirtualEthernetSwitchSystemManagementService.h





More information about the Libvirt-cim mailing list