[Kimchi-devel] [PATCH 1/7] Add a control.vm module
Aline Manera
alinefm at linux.vnet.ibm.com
Mon Jan 20 19:19:31 UTC 2014
Reviewed-by: Aline Manera <alinefm at linux.vnet.ibm.com>
On 01/16/2014 01:56 PM, shaohef at linux.vnet.ibm.com wrote:
> From: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
>
> All vm devices should be in this module
>
> Signed-off-by: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
> Signed-off-by: Royce Lv <lvroyce at linux.vnet.ibm.com>
> ---
> Makefile.am | 1 +
> configure.ac | 1 +
> contrib/kimchi.spec.fedora.in | 1 +
> contrib/kimchi.spec.suse.in | 1 +
> src/kimchi/control/Makefile.am | 2 ++
> src/kimchi/control/vm/Makefile.am | 32 ++++++++++++++++++++++++++++++++
> src/kimchi/control/vm/__init__.py | 22 ++++++++++++++++++++++
> 7 files changed, 60 insertions(+)
> create mode 100644 src/kimchi/control/vm/Makefile.am
> create mode 100644 src/kimchi/control/vm/__init__.py
>
> diff --git a/Makefile.am b/Makefile.am
> index 04ad696..c9a880c 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -46,6 +46,7 @@ PEP8_WHITELIST = \
> src/kimchi/cachebust.py \
> src/kimchi/config.py.in \
> src/kimchi/control/*.py \
> + src/kimchi/control/vm/*.py \
> src/kimchi/disks.py \
> src/kimchi/distroloader.py \
> src/kimchi/exception.py \
> diff --git a/configure.ac b/configure.ac
> index e4ccb83..5148f12 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -54,6 +54,7 @@ AC_CONFIG_FILES([
> src/distros.d/Makefile
> src/kimchi/Makefile
> src/kimchi/control/Makefile
> + src/kimchi/control/vm/Makefile
> plugins/Makefile
> plugins/sample/Makefile
> plugins/sample/ui/Makefile
> diff --git a/contrib/kimchi.spec.fedora.in b/contrib/kimchi.spec.fedora.in
> index cc8c298..4fa94d4 100644
> --- a/contrib/kimchi.spec.fedora.in
> +++ b/contrib/kimchi.spec.fedora.in
> @@ -113,6 +113,7 @@ rm -rf $RPM_BUILD_ROOT
> %{_bindir}/kimchid
> %{python_sitelib}/kimchi/*.py*
> %{python_sitelib}/kimchi/control/*.py*
> +%{python_sitelib}/kimchi/control/vm/*.py*
> %{python_sitelib}/kimchi/API.json
> %{_datadir}/kimchi/doc/API.md
> %{_datadir}/kimchi/doc/README.md
> diff --git a/contrib/kimchi.spec.suse.in b/contrib/kimchi.spec.suse.in
> index d1aec7b..9f16dfb 100644
> --- a/contrib/kimchi.spec.suse.in
> +++ b/contrib/kimchi.spec.suse.in
> @@ -60,6 +60,7 @@ rm -rf $RPM_BUILD_ROOT
> %{_bindir}/kimchid
> %{python_sitelib}/kimchi/*.py*
> %{python_sitelib}/kimchi/control/*.py*
> +%{python_sitelib}/kimchi/control/vm/*.py*
> %{python_sitelib}/kimchi/API.json
> %{_datadir}/kimchi/doc/API.md
> %{_datadir}/kimchi/doc/README.md
> diff --git a/src/kimchi/control/Makefile.am b/src/kimchi/control/Makefile.am
> index 925c593..42f62c3 100644
> --- a/src/kimchi/control/Makefile.am
> +++ b/src/kimchi/control/Makefile.am
> @@ -20,6 +20,8 @@
> # License along with this library; if not, write to the Free Software
> # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
>
> +SUBDIRS = vm
> +
> control_PYTHON = *.py
>
> controldir = $(pythondir)/kimchi/control
> diff --git a/src/kimchi/control/vm/Makefile.am b/src/kimchi/control/vm/Makefile.am
> new file mode 100644
> index 0000000..17340af
> --- /dev/null
> +++ b/src/kimchi/control/vm/Makefile.am
> @@ -0,0 +1,32 @@
> +#
> +# Kimchi
> +#
> +# Copyright IBM Corp, 2013
> +#
> +# Authors:
> +# ShaoHe Feng <shaohef at linux.vnet.ibm.com>
> +# Royce Lv <lvroyce at linux.vnet.ibm.com>
> +#
> +# This library is free software; you can redistribute it and/or
> +# modify it under the terms of the GNU Lesser General Public
> +# License as published by the Free Software Foundation; either
> +# version 2.1 of the License, or (at your option) any later version.
> +#
> +# This library is distributed in the hope that it will be useful,
> +# but WITHOUT ANY WARRANTY; without even the implied warranty of
> +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> +# Lesser General Public License for more details.
> +#
> +# You should have received a copy of the GNU Lesser General Public
> +# License along with this library; if not, write to the Free Software
> +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
> +
> +
> +vm_PYTHON = \
> + __init__.py
> +
> +
> +vmdir = $(pythondir)/kimchi/control/vm
> +
> +install-data-local:
> + $(MKDIR_P) $(DESTDIR)$(vmdir)
> diff --git a/src/kimchi/control/vm/__init__.py b/src/kimchi/control/vm/__init__.py
> new file mode 100644
> index 0000000..f22e568
> --- /dev/null
> +++ b/src/kimchi/control/vm/__init__.py
> @@ -0,0 +1,22 @@
> +#
> +# Project Kimchi
> +#
> +# Copyright IBM, Corp. 2013
> +#
> +# Authors:
> +# ShaoHe Feng <shaohef at linux.vnet.ibm.com>
> +# Royce Lv <lvroyce at linux.vnet.ibm.com>
> +#
> +# This library is free software; you can redistribute it and/or
> +# modify it under the terms of the GNU Lesser General Public
> +# License as published by the Free Software Foundation; either
> +# version 2.1 of the License, or (at your option) any later version.
> +#
> +# This library is distributed in the hope that it will be useful,
> +# but WITHOUT ANY WARRANTY; without even the implied warranty of
> +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> +# Lesser General Public License for more details.
> +#
> +# You should have received a copy of the GNU Lesser General Public
> +# License along with this library; if not, write to the Free Software
> +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
More information about the Kimchi-devel
mailing list