all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH installer 0/2] nic pinning: require first character to be lower-case
@ 2025-11-18 15:15 Stoiko Ivanov
  2025-11-18 15:15 ` [pve-devel] [PATCH installer 1/2] common: pinning: require first character to be lower-case ascii Stoiko Ivanov
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Stoiko Ivanov @ 2025-11-18 15:15 UTC (permalink / raw)
  To: pve-devel

The regex for validating NICs in pve-common starts with /^[a-z].../
getting 'name must start with a letter' to a pinned nic-name of 'ABC' is
confusing. Additionally there was a discrepancy in validating the nic-name
in the rust-based installers (is_ascii_alphabetic also matches upper-case
letters, whereas the perl-regex required [a-z])

Align the validation with the version in pve-common.

Tested by running the installer with the patch applied in TUI mode
(it creates an error for 'ABC', while accepting it without the patch) and
in GUI mode (to verify the error-message mentions lower-case letter).

Stoiko Ivanov (2):
  common: pinning: require first character to be lower-case ascii
  sys: net: fix error-message for interface names first character

 Proxmox/Sys/Net.pm                      | 2 +-
 proxmox-installer-common/src/options.rs | 8 ++++----
 test/validate-link-pin-map.pl           | 4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)

-- 
2.47.3



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-11-18 16:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-18 15:15 [pve-devel] [PATCH installer 0/2] nic pinning: require first character to be lower-case Stoiko Ivanov
2025-11-18 15:15 ` [pve-devel] [PATCH installer 1/2] common: pinning: require first character to be lower-case ascii Stoiko Ivanov
2025-11-18 15:15 ` [pve-devel] [PATCH installer 2/2] sys: net: fix error-message for interface names first character Stoiko Ivanov
2025-11-18 16:31 ` [pve-devel] applied: [PATCH installer 0/2] nic pinning: require first character to be lower-case Thomas Lamprecht

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal