Commit graph

525 commits

Author SHA1 Message Date
tomaae
ec82b33cb9 fixes 2019-12-12 23:01:57 +01:00
Tomaae
7a58bc6a70 added docstring and function hints to helper
renamed from_list to parse_api
2019-12-12 13:37:09 +01:00
Tomaae
6b2f9ae4e2 fixes and code cleanup 2019-12-12 13:02:11 +01:00
Tomaae
e439a4062e updated get_nat 2019-12-12 09:06:15 +01:00
Tomaae
9afa20abc8 added forgotten data assignment in fill_vals_proc 2019-12-12 09:02:32 +01:00
Tomaae
212d9c9aa9 made val optional in helper
added val_proc with support cor combining string
2019-12-12 08:59:36 +01:00
Tomaae
25a30b4dc5 removed unnecessary cycle from system resources 2019-12-12 08:37:28 +01:00
Tomaae
6d394a06ef controller refactoring 2019-12-11 15:34:35 +01:00
Tomaae
795f4f6ab2 added helper support for lists without uid 2019-12-11 15:09:25 +01:00
Tomaae
92b74fea01 moved vals and ensure_vals to separate helper functions 2019-12-11 13:17:03 +01:00
Tomaae
20a35a5f40 moved keymap matching into get_uid 2019-12-11 13:08:12 +01:00
Tomaae
f3a4b19d68 added support for only and skip in helper
added test for ensure_vals
2019-12-11 13:03:09 +01:00
Tomaae
057e6f91b7 added support for remapping keys for existing data structure 2019-12-11 09:13:35 +01:00
Tomaae
dfb2abd1af added option to map default to another value in current data entry 2019-12-11 08:40:40 +01:00
tomaae
477dd630d8 started refactoring controller
added debug messages
2019-12-10 22:32:59 +01:00
tomaae
81f25765f7 improved debug messages
fixed TrafficSensor unique id
2019-12-10 22:29:35 +01:00
Tomaae
f1a239f118 removed extra cycle in sensor update_items 2019-12-09 10:07:36 +01:00
Tomaae
8b410eab19
removed SWITCH_LIST 2019-12-09 09:56:16 +01:00
Tomaae
5de05f1927
simplified update_items 2019-12-09 09:52:45 +01:00
tomaae
c49e81a208 code cleanup
fixed typo in get_firmare_update
2019-12-09 00:31:43 +01:00
tomaae
6ff53266f0 added error message when script without a name is found 2019-12-09 00:17:49 +01:00
tomaae
58ef81d840 fixed unpack error when mikrotik is rebooted 2019-12-08 23:03:05 +01:00
tomaae
1b014c94b5 handle oserror and pipebroken during connection 2019-12-08 22:59:18 +01:00
tomaae
6db0079c0c prevent error when no data is received from API (reboot...etc) 2019-12-08 22:49:36 +01:00
tomaae
06727236da correctly report all entities as unavailable in UI when mikrotik is offline 2019-12-08 22:42:54 +01:00
tomaae
270c7f8274 verify if status entry in firmware update requests exists (is missing on first query after firmware upgrade, possible routeros bug) 2019-12-08 22:36:10 +01:00
tomaae
23b3e17e97 skip scripts without a name #3 2019-12-08 19:19:26 +01:00
tomaae
0896d0c991 changed librouteros library name to avoid conflict with loaded library #2 2019-12-08 18:10:09 +01:00
tomaae
9487793a4d removed "bps" from RX/TX label 2019-12-08 11:27:25 +01:00
tomaae
f6bcfcb528 added sensors for rx/tx traffic per interface 2019-12-08 11:20:02 +01:00
tomaae
e2c81c950f added ssl_handshake_failure error for UI 2019-12-08 09:57:28 +01:00
tomaae
81aa8d0bd5 changed api default encoding to be in par with mikrotik winbox 2019-12-08 09:39:23 +01:00
tomaae
6ff716ec5b added connection_timeout string for future use 2019-12-08 09:09:57 +01:00
tomaae
4f8c709488 removed library check since it is now included in the integration #2 2019-12-08 09:09:31 +01:00
tomaae
b70bb9db92 included librouteros library to avoid conflicts with other integrations #2 2019-12-08 08:57:10 +01:00
tomaae
c58184b0f7 changed config_entries import
added connection class
2019-12-07 23:37:48 +01:00
tomaae
619871a719 display invalid lib version in UI during setup #2 2019-12-07 22:34:07 +01:00
tomaae
6467673dce added exception ApiEntryNotFound 2019-12-07 21:20:36 +01:00
tomaae
8f8817a1f7 crosscheck NAT .id in case of mikrotik reboot 2019-12-07 21:18:27 +01:00
tomaae
ce98668f1e formatting entity attributes 2019-12-07 20:50:00 +01:00
tomaae
3d90f7c19a added check for old librouteros version in case of conflict with other extensions #2 2019-12-07 20:11:09 +01:00
tomaae
fc9939aeab updated exceptions in api for only needed parts 2019-12-06 01:30:07 +01:00
tomaae
d991d14a35 entity refactoring 2019-12-06 01:22:34 +01:00
tomaae
05d21d1f42 added exception test to update and run script in api
added test for active connection and reconnect to update and run script in api
2019-12-06 01:17:01 +01:00
tomaae
732060e4fe get_arp refactoring 2019-12-05 22:29:25 +01:00
tomaae
91b769481e refactoring 2019-12-05 22:10:42 +01:00
tomaae
b851085f48 removed trailing whitespace from empty lines 2019-12-05 20:45:04 +01:00
tomaae
7d9470133e removed unused arguments 2019-12-05 20:43:00 +01:00
tomaae
b2c268a1c0 added docstrings to all functions and classes 2019-12-05 20:42:14 +01:00
tomaae
42c95e78a6 added run script switches 2019-12-04 20:13:11 +01:00