Hello community,
here is the log from the commit of package yast2-network
checked in at Fri Sep 12 01:57:23 CEST 2008.
--------
--- yast2-network/yast2-network.changes 2008-09-08 14:19:52.000000000 +0200
+++ /mounts/work_src_done/STABLE/yast2-network/yast2-network.changes 2008-09-10 16:03:06.943005000 +0200
@@ -1,0 +2,6 @@
+Wed Sep 10 16:00:40 CEST 2008 - mzugec@suse.de
+
+- special proposal for virtualization network (fate#303386)
+- 2.17.25
+
+-------------------------------------------------------------------
Old:
----
yast2-network-2.17.24.tar.bz2
New:
----
yast2-network-2.17.25.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-network.spec ++++++
--- /var/tmp/diff_new_pack.KL9493/_old 2008-09-12 01:57:17.000000000 +0200
+++ /var/tmp/diff_new_pack.KL9493/_new 2008-09-12 01:57:17.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-network (Version 2.17.24)
+# spec file for package yast2-network (Version 2.17.25)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -19,12 +19,12 @@
Name: yast2-network
-Version: 2.17.24
+Version: 2.17.25
Release: 1
License: GPL v2 or later
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-network-2.17.24.tar.bz2
+Source0: yast2-network-2.17.25.tar.bz2
Prefix: /usr
# should be required by devtools
BuildRequires: perl-XML-Writer pkgconfig rpm
@@ -79,7 +79,7 @@
Michal Svec
%prep
-%setup -n yast2-network-2.17.24
+%setup -n yast2-network-2.17.25
%build
%{prefix}/bin/y2tool y2autoconf
@@ -142,7 +142,11 @@
%doc %{prefix}/share/doc/packages/yast2-network
%exclude %{prefix}/share/doc/packages/yast2-network/COPYING
%exclude %{prefix}/share/doc/packages/yast2-network/README
+
%changelog
+* Wed Sep 10 2008 mzugec@suse.de
+- special proposal for virtualization network (fate#303386)
+- 2.17.25
* Mon Sep 08 2008 mzugec@suse.cz
- button labeling in isdn module (fate#120373)
* Mon Sep 08 2008 mzugec@suse.cz
++++++ yast2-network-2.17.24.tar.bz2 -> yast2-network-2.17.25.tar.bz2 ++++++
++++ 9192 lines of diff (skipped)
++++ retrying with extended exclude list
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-network-2.17.24/configure.in new/yast2-network-2.17.25/configure.in
--- old/yast2-network-2.17.24/configure.in 2008-09-08 14:13:05.000000000 +0200
+++ new/yast2-network-2.17.25/configure.in 2008-09-09 22:20:49.000000000 +0200
@@ -1,6 +1,6 @@
dnl configure.in for yast2-network
dnl
-dnl -- This file is generated by y2autoconf 2.17.0 - DO NOT EDIT! --
+dnl -- This file is generated by y2autoconf 2.17.6 - DO NOT EDIT! --
dnl (edit configure.in.in instead)
AC_INIT(yast2-network, 2.17.24, http://bugs.opensuse.org/, yast2-network)
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-network-2.17.24/src/modules/Lan.ycp new/yast2-network-2.17.25/src/modules/Lan.ycp
--- old/yast2-network-2.17.24/src/modules/Lan.ycp 2008-09-03 15:30:45.000000000 +0200
+++ new/yast2-network-2.17.25/src/modules/Lan.ycp 2008-09-10 16:01:43.000000000 +0200
@@ -4,7 +4,7 @@
* Summary: Network card data
* Authors: Michal Svec
*
- * $Id: Lan.ycp 50179 2008-08-18 13:00:16Z mzugec $
+ * $Id: Lan.ycp 50962 2008-09-10 14:01:42Z mzugec $
*
* Representation of the configuration of network cards.
* Input and output routines.
@@ -728,6 +728,54 @@
y2milestone("NetworkConfig::Config=%1", NetworkConfig::Config);
y2milestone("NetworkConfig::DHCP=%1", NetworkConfig::DHCP);
+ // test if we have any virtualization installed
+ boolean has_virtualization = PackageSystem::Installed("xen")||PackageSystem::Installed("kvm")||
+ PackageSystem::Installed("qemu")||PackageSystem::Installed("virtualbox-ose");
+ if (has_virtualization)
+ {
+ y2milestone("Virtualization [xen|kvm|qemu|virtualbox-ose] detected - will propose virtualization network");
+ // in case of virtualization use special proposal
+ // first configure all connected unconfigured devices with dhcp (with default parameters)
+ foreach (integer number, any lanitem, LanItems::Items, {
+ if (hasAnyValue(((map)lanitem)["hwinfo", "dev_name"]:"")) {
+ LanItems::current = number;
+ boolean link = LanItems::getCurrentItem()["hwinfo", "link"]:false;
+ if (!link) y2warning("item number %1 has link:false detected", number);
+ if (!LanItems::IsItemConfigured() && link){
+ y2milestone("Nothing already configured - start proposing");
+ LanItems::ProposeItem();
+ }
+ }
+ });
+
+ // then each configuration (except bridges) move to the bridge
+ // and add old device name into bridge_ports
+ foreach(integer current, any config, LanItems::Items, {
+ string ifcfg = LanItems::Items[current, "ifcfg"]:"";
+ if (! (NetworkInterfaces::GetType(ifcfg)=="br")){
+ NetworkInterfaces::Edit(ifcfg);
+ string new_ifcfg = sformat("br%1", NetworkInterfaces::GetFreeDevice("br"));
+ y2milestone("old configuration %1, bridge %2", ifcfg, new_ifcfg);
+ NetworkInterfaces::Name = new_ifcfg;
+ NetworkInterfaces::Current["BRIDGE"]="yes";
+ NetworkInterfaces::Current["BRIDGE_PORTS"]=ifcfg;
+ // remove description - will be replaced by new (real) one
+ NetworkInterfaces::Current=remove(NetworkInterfaces::Current, "NAME");
+ if( NetworkInterfaces::Commit() ){
+ NetworkInterfaces::Delete(ifcfg);
+ NetworkInterfaces::Commit();
+
+ LanItems::Items[current, "ifcfg"] = new_ifcfg;
+ LanItems::modified=true;
+ LanItems::force_restart=true;
+ y2internal("List %1", NetworkInterfaces::List(""));
+ // re-read configuration to see new items in UI
+ LanItems::Read();
+ } else y2error("error while proposing bridge device for %1", ifcfg);
+ } else y2internal("skipping bridge ...");
+ });
+ } else {
+
if (! LanItems::nm_proposal_valid)
{
NetworkService::SetManaged (UseNetworkManager ());
@@ -744,6 +792,7 @@
}
+ }
/* Something is already configured -> do nothing */
boolean configured=false;
foreach (integer number, any lanitem, LanItems::Items, {
@@ -753,7 +802,6 @@
configured = true;
break;
}
-// }
});
if (configured) return false;
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-network-2.17.24/VERSION new/yast2-network-2.17.25/VERSION
--- old/yast2-network-2.17.24/VERSION 2008-09-08 13:44:41.000000000 +0200
+++ new/yast2-network-2.17.25/VERSION 2008-09-09 22:34:42.000000000 +0200
@@ -1 +1 @@
-2.17.24
+2.17.25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org