File tree 2 files changed +29
-1
lines changed
front/plugins/luci_import
2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 355
355
"string" : " Если необходимо отключить проверку SSL/TLS для ресурсов HTTPS (для самоподписанных сертификатов и т. д.)"
356
356
}
357
357
]
358
+ },
359
+ {
360
+ "function" : " only_reachable" ,
361
+ "type" : {
362
+ "dataType" : " boolean" ,
363
+ "elements" : [
364
+ {
365
+ "elementType" : " input" ,
366
+ "elementOptions" : [{ "type" : " checkbox" }],
367
+ "transformers" : []
368
+ }
369
+ ]
370
+ },
371
+ "default_value" : true ,
372
+ "options" : [],
373
+ "localized" : [" name" , " description" ],
374
+ "name" : [
375
+ {
376
+ "language_code" : " en_us" ,
377
+ "string" : " Only reachable"
378
+ }
379
+ ],
380
+ "description" : [
381
+ {
382
+ "language_code" : " en_us" ,
383
+ "string" : " Retrieve only devices that are reachable."
384
+ }
385
+ ]
358
386
}
359
387
],
360
388
"database_column_definitions" : [
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ def get_device_data():
67
67
else :
68
68
mylog ('error' , [f'[{ pluginName } ] login fail.' ])
69
69
70
- device_data = router .get_all_connected_devices (only_reachable = True )
70
+ device_data = router .get_all_connected_devices (only_reachable = get_setting_value ( "LUCIRPC_only_reachable" ) )
71
71
return device_data
72
72
73
73
if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments