Skip to content

Commit

Permalink
Merge pull request #1132 from yast/alias_netmask
Browse files Browse the repository at this point in the history
Fixed conversion of netmask dot-decimal notation to /prefixlength
  • Loading branch information
teclator committed Dec 15, 2020
2 parents 75e47e7 + b414ec0 commit 1ba981c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
7 changes: 7 additions & 0 deletions package/yast2-network.changes
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Dec 15 08:38:07 UTC 2020 - Knut Anderssen <kanderssen@suse.com>

- Fix prefix length assignation when the alias netmask uses
dot notation (bsc#1174766).
- 4.2.88

-------------------------------------------------------------------
Thu Dec 10 10:43:48 UTC 2020 - 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.2.87
Version: 4.2.88
Release: 0
Summary: YaST2 - Network Configuration
License: GPL-2.0-only
Expand Down
3 changes: 1 addition & 2 deletions src/lib/y2network/widgets/additional_addresses.rb
Expand Up @@ -244,11 +244,10 @@ def dialog(name, entry)
end

res[:prefixlen] = if prefixlen.empty?
IPAddr.new("#{netmask}/#{netmask}")
IPAddr.new("#{netmask}/#{netmask}").prefix
else
prefixlen
end
res[:prefixlen] = prefixlen
res[:id] = id

break
Expand Down

0 comments on commit 1ba981c

Please sign in to comment.