Commit graph

1724 commits

Author SHA1 Message Date
Christian Hesse
597277dbe7 mod/ipcalc: use $PrettyPrint 2022-07-05 12:43:57 +02:00
Christian Hesse
150feac400 mod/inspectvar: use $PrettyPrint 2022-07-05 12:43:57 +02:00
Christian Hesse
eda75f0bbc global-functions: introduce function $PrettyPrint
... to add trailing carriage return when printing to terminal:

[admin@MikroTik] > $PrettyPrint [ $DeviceInfo ]
Hostname:       MikroTik
Board name:     hAP ac^2
Architecture:   arm
Model:          RouterBOARD D52G-5HacD2HnD-TC
Serial number:  8A2A09A221A1
RouterOS:
    Channel:    testing
    Installed:  7.4rc1
RouterOS-Scripts:
    Current:    81
2022-07-05 12:43:57 +02:00
Christian Hesse
b0992da03d mod/ipcalc: remove empty line 2022-07-05 12:28:50 +02:00
Christian Hesse
3434ea9d79 mod/bridge-port-to: re-enable interfaces by id 2022-06-30 08:59:27 +02:00
Christian Hesse
e27a0166ba mod/bridge-port-vlan: re-enable interfaces by id 2022-06-30 08:59:08 +02:00
Christian Hesse
f26fb7c05f mod/bridge-port-to: do not act on missing interface
Happens on broken configuration or early boot...
2022-06-29 12:53:50 +02:00
Christian Hesse
ba34ee5cda mod/bridge-port-vlan: do not act on missing interface
Happens on broken configuration or early boot...
2022-06-29 12:53:02 +02:00
Christian Hesse
6fdf115dcf README: How to remove a script... 2022-06-28 21:55:30 +02:00
Christian Hesse
fcd6e61849 global-functions: $ScriptInstallUpdate: remove script on failure when installing 2022-06-28 21:40:00 +02:00
Christian Hesse
8b6f830fe8 mod/notification-telegram: only flush queue if fully connected
The fetch command is not as reliable as it should be... Chances were that
notifications were sent multiple times if stuck in background.
Let's flush only if fully connected - and hope this fixes it.
2022-06-20 11:29:49 +02:00
Christian Hesse
cf59e7c1a2 mod/notification-matrix: only flush queue if fully connected
The fetch command is not as reliable as it should be... Chances were that
notifications were sent multiple times if stuck in background.
Let's flush only if fully connected - and hope this fixes it.
2022-06-20 11:29:49 +02:00
Christian Hesse
d8d7ace5e5 global-functions: introduce function $IsFullyConnected 2022-06-20 11:29:49 +02:00
Christian Hesse
b1ad89b1b5 global-functions: rename internal function: $TimeIsSync -> $IsTimeSync 2022-06-20 11:29:49 +02:00
Christian Hesse
9aa82316c8 global-functions: rename internal function: $DNSIsResolving -> $IsDNSResolving 2022-06-20 11:29:49 +02:00
Christian Hesse
0ee38a4303 global-functions: rename internal function: $DefaultRouteIsReachable -> $IsDefaultRouteReachable 2022-06-20 11:29:49 +02:00
Christian Hesse
f628ef73fd global-functions: $WaitTimeSync: drop declaration of unused function 2022-06-17 00:04:24 +02:00
Christian Hesse
3002990319 fix typos: 'at lease' -> 'at least' 2022-06-16 23:56:36 +02:00
Christian Hesse
b3de1fad34 drop script 'rotate-ntp'
For RouterOS 6.x a separate package 'ntp' exists. This adds server
functionality, but allows ip addresses for the client only. I added the
script 'rotate-ntp' to update addresses from names...

Now with RouterOS 7.x there's no extra package and the limitation does
no longer exist. So let's just drop the script.

This adds migration code, that...
 * removes the script from configuration
 * removes a scheduler from configuration
 * sets the configured ntp pool name for ntp client
2022-06-15 16:39:49 +02:00
Christian Hesse
66b7fccd30 mod/bridge-port-to: log when re-enabling interfaces 2022-06-15 16:39:49 +02:00
Christian Hesse
1e894289ea mod/bridge-port-vlan: log when re-enabling interfaces 2022-06-15 16:39:49 +02:00
Christian Hesse
5dc23dd267 mod/bridge-port-to: move reenable to correct level 2022-06-15 10:01:48 +02:00
Christian Hesse
5b3b3e182b mod/bridge-port-vlan: move reenable to correct level 2022-06-15 10:01:48 +02:00
Christian Hesse
e9f00df290 global-config-overlay: fix $GlobalConfigVersion...
Looks like I missed this in commit 5e481a768b.
😳
2022-06-14 21:26:09 +02:00
Christian Hesse
dafeeabdb4 rotate-ntp: update message to indicate resolve failed again 2022-06-10 11:22:46 +02:00
Christian Hesse
c7087ac4fe rotate-ntp: do not flood the log on weak connection 2022-06-10 11:22:46 +02:00
Christian Hesse
782bbb2c90 doc/mod/bridge-port-to: fix scheduler name 2022-06-10 11:22:46 +02:00
Christian Hesse
e9780d9b4e log-forward: fix the pattern excluding mail errors
This looked smart, but did not work... 🤪
Unicode characters have to be in place to make $QuotedPrintable have an
effect. So fix it... We have duplicate pattern if symbols are disabled,
but that does not hurt.
2022-06-08 21:05:08 +02:00
Christian Hesse
aa7e9adbd7 doc/mod/notification-telegram: how to use the function 2022-06-05 22:50:57 +02:00
Christian Hesse
648ce9c3bd doc/mod/notification-matrix: how to use the function 2022-06-05 22:50:23 +02:00
Christian Hesse
f0f05be8a9 log-forward: inform about rate limit in notification 2022-06-02 11:14:36 +02:00
Christian Hesse
09d88ad91c mod/bridge-port-vlan: show vlan name in log message 2022-06-02 11:14:36 +02:00
Christian Hesse
9942918580 mod/bridge-port-vlan: re-enable interfaces with longer delay...
... and in one go to limit the overall runtime.

Looks like IPv6 addresses are not flushed if the link down does not last
long enough (~ 2 seconds on linux). This results on stale addresses
after switching the vlan, which breaks connectivity.
2022-06-02 11:14:36 +02:00
Christian Hesse
3d8ca10a91 mod/bridge-port-to: re-enable interfaces with longer delay...
... and in one go to limit the overall runtime.

Looks like IPv6 addresses are not flushed if the link down does not last
long enough (~ 2 seconds on linux). This results on stale addresses
after switching bridge, which breaks connectivity.
2022-06-02 11:14:36 +02:00
Christian Hesse
61c9b29ec3 log-forward: use warning-sign for severity warning and up 2022-06-02 11:14:36 +02:00
Christian Hesse
89f4c91ccf log-forward: change symbol for notification 2022-05-20 08:33:22 +02:00
Christian Hesse
3139b14c67 global-functions: $FlushEmailQueue: return if time is not synced
The local system time is used in the mail header. We do not want the
mails to be sent in the past, so return early (and thus wait for time
being synced).
2022-05-17 21:11:03 +02:00
Christian Hesse
8c31a06b39 mod/bridge-port-to: add interface down and up
This helps the client to detect the change.
2022-05-16 22:48:26 +02:00
Christian Hesse
4e7c1df7ee mod/bridge-port-vlan: add interface down and up
This helps the client to detect the change.
2022-05-16 22:27:01 +02:00
Christian Hesse
194f14cc13 mod/bridge-port-vlan: remove left over comment 2022-05-16 22:26:23 +02:00
Christian Hesse
0e73f85c11 log-forward: do *not* wait to be fully connected
Let's forward logs as early as possible.

All notification functions are expected to handle notifications with
queues, so nothing is lost. Just the opposite: Logs being rotated before
forwarding becomes less likely.
2022-05-16 12:42:38 +02:00
Christian Hesse
5e481a768b notify about freeze of routeros-v7 branch 2022-05-12 11:05:10 +02:00
Christian Hesse
df547b87a4 Merge branch 'ros-v7-path-syntax' into next 2022-05-12 11:04:43 +02:00
Christian Hesse
12655bd58a Merge branch 'doc' into ros-v7-path-syntax 2022-05-12 11:04:12 +02:00
Christian Hesse
09d926ed2f doc/update-tunnelbroker: RouterOS v7 path syntax 2022-05-12 11:04:00 +02:00
Christian Hesse
f759a9a52e doc/update-gre-address: RouterOS v7 path syntax 2022-05-12 11:04:00 +02:00
Christian Hesse
347cb4f3b6 doc/unattended-lte-firmware-upgrade: RouterOS v7 path syntax 2022-05-12 11:04:00 +02:00
Christian Hesse
c2637ee72c doc/super-mario-theme: RouterOS v7 path syntax 2022-05-12 11:04:00 +02:00
Christian Hesse
4ca43dcde3 doc/ssh-keys-import: RouterOS v7 path syntax 2022-05-12 11:04:00 +02:00
Christian Hesse
06509f6af4 doc/sms-forward: RouterOS v7 path syntax 2022-05-12 11:04:00 +02:00