Add a message to verify Netifaces2

This commit is contained in:
nicolargo 2025-01-04 11:20:08 +01:00
parent 728f86fa5e
commit d264155fc2
1 changed files with 9 additions and 0 deletions

View File

@ -24,6 +24,15 @@ except ImportError as e:
else:
import_error_tag = False
try:
netifaces.default_gateway()
except Exception:
import_error_tag = True
logger.warning("Netifaces2 should be installed in your Python environment, IP plugin is disabled")
else:
import_error_tag = False
# Fields description
# description: human readable description
# short_name: shortname to use un UI