[Bug 264981] Invisible interface after destroying vnet jail

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 01 Jul 2022 17:20:30 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264981

            Bug ID: 264981
           Summary: Invisible interface after destroying vnet jail
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: olivier@freebsd.org

Problem:
Destroying a jail with vnet interface (in UP state), made this interface hidden
from the host but still existing.


How to reproduce:

root@host:~ # uname -a
FreeBSD bigone 14.0-CURRENT FreeBSD 14.0-CURRENT #146 main-n256433-038405f32f7:
Thu Jun 30 01:29:43 CEST 2022    
root@host:/usr/obj/usr/src/amd64.amd64/sys/BBR amd64
root@host:~ # ifconfig lo888 create
root@host:~ # jail -c name=bug persist vnet vnet.interface=lo888
root@host:~ # jexec bug ifconfig lo888 up
root@host:~ # jail -R bug
root@host:~ # ifconfig lo888 destroy
ifconfig: interface lo888 does not exist
root@host:~ # ifconfig lo888 create
ifconfig: interface lo888 already exists

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