FE+BE: Filters

Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
jokob-sk
2026-04-15 05:51:04 +10:00
parent 03a228e31e
commit 4267a5c30c
3 changed files with 5 additions and 1 deletions

View File

@@ -248,7 +248,7 @@
"Device_TableHead_NetworkSite": "Network Site",
"Device_TableHead_Owner": "Owner",
"Device_TableHead_ParentRelType": "Relationship Type",
"Device_TableHead_Parent_MAC": "Parent network node",
"Device_TableHead_Parent_MAC": "Parent node",
"Device_TableHead_Port": "Port",
"Device_TableHead_PresentLastScan": "Presence",
"Device_TableHead_ReqNicsOnline": "Require NICs Online",

View File

@@ -522,6 +522,7 @@
"Device_TableHead_SSID",
"Device_TableHead_SourcePlugin",
"Device_TableHead_ParentRelType",
"Device_TableHead_Parent_MAC",
"Device_TableHead_Vlan"
],
"localized": ["name", "description"],

View File

@@ -96,6 +96,9 @@ sql_devices_filters = """
SELECT DISTINCT 'devVlan' AS columnName, devVlan AS columnValue
FROM Devices WHERE devVlan NOT IN ('', 'null') AND devVlan IS NOT NULL
UNION
SELECT DISTINCT 'devParentMAC' AS columnName, devParentMAC AS columnValue
FROM Devices WHERE devParentMAC NOT IN ('', 'null') AND devParentMAC IS NOT NULL
UNION
SELECT DISTINCT 'devParentRelType' AS columnName, devParentRelType AS columnValue
FROM Devices WHERE devParentRelType NOT IN ('', 'null') AND devParentRelType IS NOT NULL
UNION