From 2e620256bd76c449c835c604e404483437743011 Mon Sep 17 00:00:00 2001 From: Jose Luis Duran Date: Thu, 12 Oct 2023 13:15:15 +0000 Subject: [PATCH] atf_python: Do not attempt to automatically delete lo0 Else `ifconfig lo0 destroy` will throw an: ifconfig: SIOCIFDESTROY: Invalid argument Reviewed by: markj MFC after: 1 week Pull Request: https://github.com/freebsd/freebsd-src/pull/865 --- tests/atf_python/sys/net/vnet.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/atf_python/sys/net/vnet.py b/tests/atf_python/sys/net/vnet.py index 8942e6839b3..c58ae28d5ca 100644 --- a/tests/atf_python/sys/net/vnet.py +++ b/tests/atf_python/sys/net/vnet.py @@ -180,6 +180,8 @@ def create_iface(self, alias_name: str, iface_name: str) -> List[VnetInterface]: @staticmethod def is_autodeleted(iface_name: str) -> bool: + if iface_name == "lo0": + return False iface_type = re.split(r"\d+", iface_name)[0] return iface_type in IfaceFactory.AUTODELETE_TYPES