These patches just add new library in libvirt-cim and do not touch
existing providers. It have a testing program added to see the functionalities.
V2: fix some problem in filter out NICs.
V3: using libnl3 and libbridge instead of string parsing, applys to libvirt-cim
0.5.5.
V4: switched to libnl1, using custom codes for bridge. Small fix about date
declaration. libnl1 provides less functions such as single root NICs, but it is
workable for vlan 8021q. Patch applys to latest libvirt-cim from git.
repository:
git://gitorious.org/libvirt-cim_develop/libvirt-cim_develop.git
page:
https://gitorious.org/libvirt-cim_develop/libvirt-cim_develop
Wenchao Xia (8):
vlan library - Makefile system change
vlan library - add missing header files in libnl-devel 1.1
vlan library - add a simple implemention for bridge
vlan library - add host network implemention
vlan library - add basic structure and related functions
vlan library - add help functions and error defines
vlan library - add interface for CIM model code
vlan library - testing program for libnetwork
Makefile.am | 2 +-
acinclude.m4 | 9 +
configure.ac | 8 +
libnetwork/Makefile.am | 37 ++
libnetwork/dll_magic.h | 13 +
libnetwork/host_network_API.c | 30 +
libnetwork/host_network_API.h | 25 +
libnetwork/host_network_basic.c | 656 ++++++++++++++++++++++
libnetwork/host_network_basic.h | 158 ++++++
libnetwork/host_network_error.h | 23 +
libnetwork/host_network_helper.c | 266 +++++++++
libnetwork/host_network_helper.h | 177 ++++++
libnetwork/host_network_implement_OSAPI.c | 366 ++++++++++++
libnetwork/host_network_implement_OSAPI.h | 21 +
libnetwork/host_network_implement_bridge.c | 224 ++++++++
libnetwork/host_network_implement_bridge.h | 8 +
libnetwork/include/netlink/route/link/info-api.h | 71 +++
libnetwork/include/netlink/route/link/vlan.h | 55 ++
libnetwork/libnetwork_test.c | 91 +++
libvirt-cim.spec.in | 2 +
20 files changed, 2241 insertions(+), 1 deletions(-)
create mode 100644 libnetwork/Makefile.am
create mode 100644 libnetwork/dll_magic.h
create mode 100644 libnetwork/host_network_API.c
create mode 100644 libnetwork/host_network_API.h
create mode 100644 libnetwork/host_network_basic.c
create mode 100644 libnetwork/host_network_basic.h
create mode 100644 libnetwork/host_network_error.h
create mode 100644 libnetwork/host_network_helper.c
create mode 100644 libnetwork/host_network_helper.h
create mode 100644 libnetwork/host_network_implement_OSAPI.c
create mode 100644 libnetwork/host_network_implement_OSAPI.h
create mode 100644 libnetwork/host_network_implement_bridge.c
create mode 100644 libnetwork/host_network_implement_bridge.h
create mode 100644 libnetwork/include/netlink/route/link/info-api.h
create mode 100644 libnetwork/include/netlink/route/link/vlan.h
create mode 100644 libnetwork/libnetwork_test.c