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
This commit is contained in:
committed by
Mark Johnston
parent
edd2a9b887
commit
2e620256bd
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user