Add additional interfaces to AddInterfacePage

This commit is contained in:
rfnx 2025-02-01 01:09:06 -05:00
parent 59eba2ff64
commit adad97e917
6 changed files with 1731 additions and 334 deletions

View file

@ -143,6 +143,10 @@ class Utils {
static isInterfaceEnabled(iface) {
const rawValue = iface.enabled ?? iface.interface_enabled;
if (rawValue === true) {
// when enabled or interface_enabled is True it needs to return true.
return true;
}
const value = rawValue?.toLowerCase();
return value === "on" || value === "yes" || value === "true";
}