Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package yast2-network for openSUSE:Factory checked in at 2022-03-06 18:15:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2-network (Old) and /work/SRC/openSUSE:Factory/.yast2-network.new.1958 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-network" Sun Mar 6 18:15:26 2022 rev:476 rq:959500 version:4.4.43 Changes: -------- --- /work/SRC/openSUSE:Factory/yast2-network/yast2-network.changes 2022-02-26 17:02:37.143541012 +0100 +++ /work/SRC/openSUSE:Factory/.yast2-network.new.1958/yast2-network.changes 2022-03-06 18:15:28.591823568 +0100 @@ -1,0 +2,7 @@ +Thu Mar 3 10:01:24 UTC 2022 - Knut Anderssen <kanders...@suse.com> + +- Added connection config writers for Qeth and Hipersocket + devices (bsc#1196582) +- 4.4.43 + +------------------------------------------------------------------- Old: ---- yast2-network-4.4.42.tar.bz2 New: ---- yast2-network-4.4.43.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-network.spec ++++++ --- /var/tmp/diff_new_pack.MN56ir/_old 2022-03-06 18:15:29.183823649 +0100 +++ /var/tmp/diff_new_pack.MN56ir/_new 2022-03-06 18:15:29.187823649 +0100 @@ -17,7 +17,7 @@ Name: yast2-network -Version: 4.4.42 +Version: 4.4.43 Release: 0 Summary: YaST2 - Network Configuration License: GPL-2.0-only ++++++ yast2-network-4.4.42.tar.bz2 -> yast2-network-4.4.43.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-network-4.4.42/package/yast2-network.changes new/yast2-network-4.4.43/package/yast2-network.changes --- old/yast2-network-4.4.42/package/yast2-network.changes 2022-02-25 17:53:56.000000000 +0100 +++ new/yast2-network-4.4.43/package/yast2-network.changes 2022-03-04 16:30:38.000000000 +0100 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Thu Mar 3 10:01:24 UTC 2022 - Knut Anderssen <kanders...@suse.com> + +- Added connection config writers for Qeth and Hipersocket + devices (bsc#1196582) +- 4.4.43 + +------------------------------------------------------------------- Fri Feb 25 11:54:49 UTC 2022 - Knut Anderssen <kanders...@suse.com> - Revert last change going back to skip DHCP setup completely if diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-network-4.4.42/package/yast2-network.spec new/yast2-network-4.4.43/package/yast2-network.spec --- old/yast2-network-4.4.42/package/yast2-network.spec 2022-02-25 17:53:56.000000000 +0100 +++ new/yast2-network-4.4.43/package/yast2-network.spec 2022-03-04 16:30:38.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package yast2-network # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: yast2-network -Version: 4.4.42 +Version: 4.4.43 Release: 0 Summary: YaST2 - Network Configuration License: GPL-2.0-only @@ -55,13 +55,13 @@ Requires: yast2 >= 4.4.38 # Packages::vnc_packages Requires: yast2-packager >= 4.0.18 -Requires: rubygem(%rb_default_ruby_abi:cfa) >= 0.6.4 Requires: augeas-lenses +Requires: rubygem(%rb_default_ruby_abi:cfa) >= 0.6.4 # BusID of all the cards with the same one (bsc#1007172) Requires: hwinfo >= 21.35 +Requires: hostname Requires: yast2-ruby-bindings >= 1.0.0 Requires: yast2-xml -Requires: hostname # testsuite BuildRequires: rubygem(%rb_default_ruby_abi:rspec) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-network-4.4.42/src/lib/y2network/network_manager/connection_config_writers/hsi.rb new/yast2-network-4.4.43/src/lib/y2network/network_manager/connection_config_writers/hsi.rb --- old/yast2-network-4.4.42/src/lib/y2network/network_manager/connection_config_writers/hsi.rb 1970-01-01 01:00:00.000000000 +0100 +++ new/yast2-network-4.4.43/src/lib/y2network/network_manager/connection_config_writers/hsi.rb 2022-03-04 16:30:38.000000000 +0100 @@ -0,0 +1,31 @@ +# Copyright (c) [2022] SUSE LLC +# +# All Rights Reserved. +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of version 2 of the GNU General Public License as published +# by the Free Software Foundation. +# +# This program 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 General Public License for +# more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, contact SUSE LLC. +# +# To contact SUSE LLC about this file by physical or electronic mail, you may +# find current contact information at www.suse.com. + +require "y2network/network_manager/connection_config_writers/qeth" + +module Y2Network + module NetworkManager + module ConnectionConfigWriters + # This class is responsible for writing the information from a ConnectionConfig::Hsi + # object to the underlying system. + class Hsi < Qeth + end + end + end +end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-network-4.4.42/src/lib/y2network/network_manager/connection_config_writers/qeth.rb new/yast2-network-4.4.43/src/lib/y2network/network_manager/connection_config_writers/qeth.rb --- old/yast2-network-4.4.42/src/lib/y2network/network_manager/connection_config_writers/qeth.rb 1970-01-01 01:00:00.000000000 +0100 +++ new/yast2-network-4.4.43/src/lib/y2network/network_manager/connection_config_writers/qeth.rb 2022-03-04 16:30:38.000000000 +0100 @@ -0,0 +1,48 @@ +# Copyright (c) [2022] SUSE LLC +# +# All Rights Reserved. +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of version 2 of the GNU General Public License as published +# by the Free Software Foundation. +# +# This program 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 General Public License for +# more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, contact SUSE LLC. +# +# To contact SUSE LLC about this file by physical or electronic mail, you may +# find current contact information at www.suse.com. + +require "y2network/network_manager/connection_config_writers/ethernet" + +module Y2Network + module NetworkManager + module ConnectionConfigWriters + # This class is responsible for writing the information from a ConnectionConfig::Qeth + # object to the underlying system. + class Qeth < Ethernet + # @see Y2Network::ConnectionConfigWriters::Ethernet#update_file + # @param conn [Y2Network::ConnectionConfig::Qeth] Configuration to write + def update_file(conn) + super + file.connection["s390-nettype"] = "qeth" + file.connection["s390-options"] = options_for(conn) + file.connection["s390-subchannels"] = conn.device_id.gsub(":", ",") if conn.device_id + end + + private + + # Convenience method to obtain QETH specific options + # + # @param conn [Y2Network::ConnectionConfig::Qeth] Configuration to write + def options_for(conn) + "layer2=#{conn.layer2 ? 1 : 0},portno=#{conn.port_number.to_i}" + end + end + end + end +end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-network-4.4.42/test/y2network/network_manager/connection_config_writers/hsi_test.rb new/yast2-network-4.4.43/test/y2network/network_manager/connection_config_writers/hsi_test.rb --- old/yast2-network-4.4.42/test/y2network/network_manager/connection_config_writers/hsi_test.rb 1970-01-01 01:00:00.000000000 +0100 +++ new/yast2-network-4.4.43/test/y2network/network_manager/connection_config_writers/hsi_test.rb 2022-03-04 16:30:38.000000000 +0100 @@ -0,0 +1,52 @@ +# Copyright (c) [2022] SUSE LLC +# +# All Rights Reserved. +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of version 2 of the GNU General Public License as published +# by the Free Software Foundation. +# +# This program 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 General Public License for +# more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, contact SUSE LLC. +# +# To contact SUSE LLC about this file by physical or electronic mail, you may +# find current contact information at www.suse.com. + +require_relative "../../../test_helper" +require "y2network/network_manager/connection_config_writers/hsi" +require "cfa/nm_connection" +require "y2network/boot_protocol" +require "y2network/startmode" +require "y2network/connection_config/bonding" + +describe Y2Network::NetworkManager::ConnectionConfigWriters::Hsi do + subject(:handler) { described_class.new(file) } + let(:file) { CFA::NmConnection.new("hsi0.nm_connection") } + + let(:conn) do + Y2Network::ConnectionConfig::Qeth.new.tap do |c| + c.interface = "hsi0" + c.description = "Hipersocket connection 0" + c.startmode = Y2Network::Startmode.create("auto") + c.bootproto = Y2Network::BootProtocol::STATIC + c.device_id = "0.0.0800:0.0.0801:0.0.0802" + c.layer2 = true + c.port_number = 0 + end + end + + describe "#write" do + it "sets device and IP relevant attributes" do + handler.write(conn) + expect(file.connection["type"]).to eql("ethernet") + expect(file.connection["s390-nettype"]).to eql("qeth") + expect(file.connection["s390-options"]).to eql("layer2=1,portno=0") + expect(file.connection["s390-subchannels"]).to eql("0.0.0800,0.0.0801,0.0.0802") + end + end +end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-network-4.4.42/test/y2network/network_manager/connection_config_writers/qeth_test.rb new/yast2-network-4.4.43/test/y2network/network_manager/connection_config_writers/qeth_test.rb --- old/yast2-network-4.4.42/test/y2network/network_manager/connection_config_writers/qeth_test.rb 1970-01-01 01:00:00.000000000 +0100 +++ new/yast2-network-4.4.43/test/y2network/network_manager/connection_config_writers/qeth_test.rb 2022-03-04 16:30:38.000000000 +0100 @@ -0,0 +1,52 @@ +# Copyright (c) [2022] SUSE LLC +# +# All Rights Reserved. +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of version 2 of the GNU General Public License as published +# by the Free Software Foundation. +# +# This program 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 General Public License for +# more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, contact SUSE LLC. +# +# To contact SUSE LLC about this file by physical or electronic mail, you may +# find current contact information at www.suse.com. + +require_relative "../../../test_helper" +require "y2network/network_manager/connection_config_writers/qeth" +require "cfa/nm_connection" +require "y2network/boot_protocol" +require "y2network/startmode" +require "y2network/connection_config/bonding" + +describe Y2Network::NetworkManager::ConnectionConfigWriters::Qeth do + subject(:handler) { described_class.new(file) } + let(:file) { CFA::NmConnection.new("eth0.nm_connection") } + + let(:conn) do + Y2Network::ConnectionConfig::Qeth.new.tap do |c| + c.interface = "eth0" + c.description = "Qeth 0" + c.startmode = Y2Network::Startmode.create("auto") + c.bootproto = Y2Network::BootProtocol::STATIC + c.device_id = "0.0.0800:0.0.0801:0.0.0802" + c.layer2 = true + c.port_number = 0 + end + end + + describe "#write" do + it "sets device and IP relevant attributes" do + handler.write(conn) + expect(file.connection["type"]).to eql("ethernet") + expect(file.connection["s390-nettype"]).to eql("qeth") + expect(file.connection["s390-options"]).to eql("layer2=1,portno=0") + expect(file.connection["s390-subchannels"]).to eql("0.0.0800,0.0.0801,0.0.0802") + end + end +end