Skip to content

Commit

Permalink
Merge a292631 into 6c101da
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidner committed Sep 3, 2018
2 parents 6c101da + a292631 commit 67ff8fd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion library/network/src/lib/y2firewall/helpers/interfaces.rb
Expand Up @@ -37,7 +37,9 @@ def self.included(_base)
#
# @return [Y2Firewall::Firewalld] a firewalld instance
def firewalld
Y2Firewall::Firewalld.instance
fw = Y2Firewall::Firewalld.instance
fw.read unless fw.read?
fw
end

# Return the name of interfaces which belongs to the default zone
Expand Down Expand Up @@ -81,6 +83,7 @@ def default_zone
def known_interfaces
return @known_interfaces if @known_interfaces

Yast::NetworkInterfaces.Read
interfaces = Yast::NetworkInterfaces.List("").reject { |i| i == "lo" }

@known_interfaces = interfaces.map do |interface|
Expand Down

0 comments on commit 67ff8fd

Please sign in to comment.