Ivan Pavlina
|
1a46da5aae
|
Add ability to return list results of API call instead of generator. On generator return do not call iterate over object, removes redundant calls to API. Update calls to api.path with new input param. Fix logging in helper object.
|
2020-04-04 17:51:35 +02:00 |
|
Tomaae
|
e4b7551b9c
|
Merge pull request #16 from ivanpavlina/dev
Add support for simple queues.
|
2020-03-25 17:22:12 +01:00 |
|
Ivan Pavlina
|
63210ec62b
|
Fix - .id was missing from retrieved params
|
2020-03-25 13:28:52 +01:00 |
|
Ivan Pavlina
|
bcf86dc7a3
|
Add support for simple queues. Transfer traffic_type and traffic_div calculation to separate method
|
2020-03-25 13:18:49 +01:00 |
|
Andrey Khrolenok
|
7ccaf0d9c3
|
PM8 code optimization
|
2020-03-21 19:02:28 +03:00 |
|
Andrey Khrolenok
|
f0b4c5e723
|
Fix some minor errors and add russian translation.
|
2020-03-21 18:46:54 +03:00 |
|
tomaae
|
0a58db40cd
|
reverted back to customized fork of librouteros
|
2020-03-18 09:33:36 +01:00 |
|
tomaae
|
1010a8aa3a
|
catching socket.timeout using tuple exception during traffic poll #8
|
2020-03-17 00:42:44 +01:00 |
|
tomaae
|
50cf54c417
|
log disconnect error/retry only once until reconnect
log reconnect
|
2020-03-17 00:40:08 +01:00 |
|
tomaae
|
8ec4f9ade5
|
changed string formatting according to development guidelines
|
2020-03-16 19:02:54 +01:00 |
|
tomaae
|
7af3ef0bb3
|
changed info logger according to development guidelines
|
2020-03-16 18:39:39 +01:00 |
|
tomaae
|
bd82612cb8
|
reformatted code using black
|
2020-03-16 18:35:51 +01:00 |
|
tomaae
|
3cf637d1ba
|
reverted to official librouteros #9
|
2020-03-16 18:33:51 +01:00 |
|
tomaae
|
25e90702d2
|
added more options to measurement for traffic #10
|
2020-03-16 18:20:21 +01:00 |
|
tomaae
|
e418c20252
|
reformatted code using black
|
2020-03-16 04:51:41 +01:00 |
|
tomaae
|
b6e5c10540
|
added option to select units of measurement for traffic #10
|
2020-03-16 01:32:13 +01:00 |
|
tomaae
|
0f7ad23e3c
|
catching socket.timeout using tuple exception #8
|
2020-03-13 02:39:35 +01:00 |
|
tomaae
|
b20d140383
|
api code cleanup
|
2020-03-13 02:27:21 +01:00 |
|
tomaae
|
d68ffbdc46
|
catch an error on recv in librouteros and raise an error #8
|
2020-03-12 13:21:03 +01:00 |
|
tomaae
|
d9dd5330ee
|
missing interface workaround #11
|
2020-03-11 23:39:43 +01:00 |
|
tomaae
|
fc74a2cd56
|
simplified api path call
|
2020-03-11 23:35:28 +01:00 |
|
tomaae
|
df9f551b96
|
fixed traffic debug
|
2020-03-11 23:34:26 +01:00 |
|
tomaae
|
f111131a9b
|
changed traffic sensors to kbps #10
|
2020-03-11 23:25:51 +01:00 |
|
tomaae
|
94a80656c3
|
api disconnects from router on communication error
|
2020-03-11 20:01:29 +01:00 |
|
tomaae
|
2a9585a4b3
|
changed defaults for NAT protocol and dst-port
|
2019-12-21 14:58:41 +01:00 |
|
tomaae
|
3ee017e11c
|
fixed arp debug message
|
2019-12-21 08:21:17 +01:00 |
|
tomaae
|
9c144d7ade
|
api, limit reconnect attempts to once per minute #7
|
2019-12-21 07:57:20 +01:00 |
|
tomaae
|
26d523c035
|
parse_api, fill default values if key is not specified #7
|
2019-12-21 07:34:23 +01:00 |
|
tomaae
|
9be5a15c54
|
removed redundant returns
|
2019-12-12 23:14:14 +01:00 |
|
tomaae
|
0f2cb6d455
|
changed default api error state from blank to none
|
2019-12-12 23:07:16 +01:00 |
|
tomaae
|
f7ef7a7660
|
api locking and improved error handling
|
2019-12-12 23:02:56 +01:00 |
|
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 |
|