[Bug 285947] [patch] rc.d/netif fails renaming devd(8) initiated interface config (and more)

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 07 Apr 2025 18:39:39 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285947

            Bug ID: 285947
           Summary: [patch] rc.d/netif fails renaming devd(8) initiated
                    interface config (and more)
           Product: Base System
           Version: 14.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: bugzilla.freebsd@omnilan.de

Defining 'ifconfig_ngeth0_name="vngXlink0"' leads to a renamed interface but
applying the corresponding configuration fails, which my patch proposal fixes.

Renaming "epair" clones also doesn't work and is addressed in my patch
proposal.

Another oddity addressed:
If I don't define 'network_interfaces' (default "AUTO" applies), and leave some
ports (e.g. from a multi-port NIC) unconfigured, boot screen shows these
interfaces twice.
By defaulting to the aequivalent of NOAUTO keyword for devd(8) triggered
interface setups, which lacks any user-config parameters, unconfigured
interfaces are processed only once.

While at it, fix NOAUTO wasn't resprected for devd(8) interface setups.

And allow 'ifconfig description' for NOAUTO interfaces, by slightly refactoring
the routine (separated from ifconfig_up()).

Please see https://reviews.freebsd.org/D21007 for the patch.

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