[Bug 290916] JIB script should allow “-“ character in interface namer

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 09 Nov 2025 15:52:33 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290916

            Bug ID: 290916
           Summary: JIB script should allow “-“ character in interface
                    namer
           Product: Base System
           Version: 14.3-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: tschetter.victor@gmail.com

Currently, we can run “jib addm test_jail vtnet0” and it will add the epairs
“e0a_test_jail, e0b_test_jail” to vtnet0

We cannot, however, run “jib addm test-jail vtnet0” due to the following line
in the jib script. “      [ "${name:-x}" = "${name#*[!0-9a-zA-Z_]}" -a $# -gt 1
] ||”

This can easily be changed to “ [ "${name:-x}" = "${name#*[!0-9a-zA-Z-_]}" -a
$# -gt 1 ] ||” as I tested and it successfully added the epairs. 

Am I missing something?

-- 
You are receiving this mail because:
You are the assignee for the bug.