ALT Linux Bugzilla
– Attachment 8907 Details for
Bug 38762
Неверно сохраняется маска подсети из веб-интерфейса PVE
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
etcnet-to-network: принимать маску сети в длинном формате
file_38762.txt (text/plain), 1.19 KB, created by
Andrew Vasilyev
on 2020-08-12 18:51:09 MSK
(
hide
)
Description:
etcnet-to-network: принимать маску сети в длинном формате
Filename:
MIME Type:
Creator:
Andrew Vasilyev
Created:
2020-08-12 18:51:09 MSK
Size:
1.19 KB
patch
obsolete
>diff --git src/PVE/INotifyEtcnetOverride.pm src/PVE/INotifyEtcnetOverride.pm >index 2a61264..cfba5a9 100644 >--- src/PVE/INotifyEtcnetOverride.pm >+++ src/PVE/INotifyEtcnetOverride.pm >@@ -658,10 +658,16 @@ sub __read_ipv4address_into { > chomp ($line); > if ($line =~ m!^\s*(?:$|#)!) { > # skip >- } elsif ($line =~ s!\s*([\d\.]+)/(\d+)\s*!!) { >- $f->{address} = $1; >- $f->{netmask} = __unwrap_netmask4($2); >- __line_broadcast_into($path, $line, $f, 'broadcast'); >+ } elsif ($line =~ m!\s*([\d\.]+)/(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\s*!) { # x.x.x.x/a.b.c.d >+ $f->{address} = $1; >+ $f->{netmask} = $2; >+ $line =~ s!\s*([\d\.]+)/([\d\.]+)\s*!!; >+ __line_broadcast_into($path, $line, $f, 'broadcast'); >+ } elsif ($line =~ m!\s*([\d\.]+)/(\d{1,3})\s*!) { # x.x.x.x/yy >+ $f->{address} = $1; >+ $f->{netmask} = __unwrap_netmask4($2); >+ $line =~ s!\s*([\d\.]+)/(\d+)\s*!!; >+ __line_broadcast_into($path, $line, $f, 'broadcast'); > } elsif (__line_broadcast_into($path, $line, $f, 'broadcast')) { > # parsed > } else {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 38762
:
8885
|
8907
|
8908