git: 2e620256bd76 - main - atf_python: Do not attempt to automatically delete lo0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 13 Oct 2023 19:31:36 UTC
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=2e620256bd76c449c835c604e404483437743011 commit 2e620256bd76c449c835c604e404483437743011 Author: Jose Luis Duran <jlduran@gmail.com> AuthorDate: 2023-10-12 13:15:15 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2023-10-13 19:31:30 +0000 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 8942e6839b35..c58ae28d5ca9 100644 --- a/tests/atf_python/sys/net/vnet.py +++ b/tests/atf_python/sys/net/vnet.py @@ -180,6 +180,8 @@ class IfaceFactory(object): @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