Skip to content

Commit

Permalink
Merge ba55db7 into 5e24f6a
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Mar 11, 2022
2 parents 5e24f6a + ba55db7 commit bd6cae2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
7 changes: 7 additions & 0 deletions package/yast2-network.changes
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Mar 11 12:36:29 UTC 2022 - Imobach Gonzalez Sosa <igonzalezsosa@suse.com>

- Display the network configuration in the AutoYaST user interface
(see bsc#1197019).
- 4.4.45

-------------------------------------------------------------------
Wed Mar 9 10:10:37 UTC 2022 - Knut Anderssen <kanderssen@suse.com>

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-network.spec
Expand Up @@ -17,7 +17,7 @@


Name: yast2-network
Version: 4.4.44
Version: 4.4.45
Release: 0
Summary: YaST2 - Network Configuration
License: GPL-2.0-only
Expand Down
11 changes: 10 additions & 1 deletion src/modules/Lan.rb
Expand Up @@ -45,6 +45,9 @@

require "shellwords"

Yast.import "HTML"
Yast.import "Summary"

module Yast
class LanClass < Module
include ::UI::TextHelpers
Expand Down Expand Up @@ -629,9 +632,11 @@ def Export
# "proposal": for proposal also with resolver an routing summary
# @return summary of the current configuration
def Summary(mode)
return no_config_message if yast_config.nil?

case mode
when "summary", "proposal"
Y2Network::Presenters::Summary.text_for(yast_config, mode)
Y2Network::Presenters::Summary.text_for(yast_config, "proposal")
else
Y2Network::Presenters::Summary.text_for(yast_config, "interfaces")
end
Expand Down Expand Up @@ -922,6 +927,10 @@ def devices_link_status
log.debug("link_status #{hash.inspect}")
end
end

def no_config_message
HTML.Heading(_("Network Configuration")) + Summary.NotConfigured
end
end

Lan = LanClass.new
Expand Down

0 comments on commit bd6cae2

Please sign in to comment.