Set mangle passthrough default for RouterOS 7.19 (#382)

The behaviour of the `passthrough` property in `ip/firewall/mangle` has
changed in RouterOS 7.19:

```
*) firewall - always show "passthrough" when exporting mangle table;
```

Per the documentation at [1] the default is `true`.

[1] https://help.mikrotik.com/docs/spaces/ROS/pages/48660587/Mangle
This commit is contained in:
hansmi 2025-07-28 22:33:24 +02:00 committed by GitHub
parent 1f38be9e56
commit b70b4a72b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -3151,6 +3151,10 @@ PATHS = {
unversioned=VersionedAPIData(
fully_understood=True,
stratify_keys=('chain', ),
versioned_fields=[
([('7.19', '<')], 'passthrough', KeyInfo(can_disable=True)),
([('7.19', '>=')], 'passthrough', KeyInfo(default=True)),
],
fields={
'action': KeyInfo(),
'address-list': KeyInfo(can_disable=True),
@ -3202,7 +3206,6 @@ PATHS = {
'p2p': KeyInfo(can_disable=True),
'packet-mark': KeyInfo(can_disable=True),
'packet-size': KeyInfo(can_disable=True),
'passthrough': KeyInfo(can_disable=True),
'per-connection-classifier': KeyInfo(can_disable=True),
'port': KeyInfo(can_disable=True),
'priority': KeyInfo(can_disable=True),