mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-08-07 11:44:56 +02:00
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:
parent
1f38be9e56
commit
b70b4a72b3
2 changed files with 6 additions and 1 deletions
2
changelogs/fragments/382-mangle-passthrough.yml
Normal file
2
changelogs/fragments/382-mangle-passthrough.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- api_info, api_modify - set ``passthrough`` default in ``ip firewall mangle`` to ``true`` for RouterOS 7.19 and newer (https://github.com/ansible-collections/community.routeros/pull/382).
|
|
@ -3151,6 +3151,10 @@ PATHS = {
|
||||||
unversioned=VersionedAPIData(
|
unversioned=VersionedAPIData(
|
||||||
fully_understood=True,
|
fully_understood=True,
|
||||||
stratify_keys=('chain', ),
|
stratify_keys=('chain', ),
|
||||||
|
versioned_fields=[
|
||||||
|
([('7.19', '<')], 'passthrough', KeyInfo(can_disable=True)),
|
||||||
|
([('7.19', '>=')], 'passthrough', KeyInfo(default=True)),
|
||||||
|
],
|
||||||
fields={
|
fields={
|
||||||
'action': KeyInfo(),
|
'action': KeyInfo(),
|
||||||
'address-list': KeyInfo(can_disable=True),
|
'address-list': KeyInfo(can_disable=True),
|
||||||
|
@ -3202,7 +3206,6 @@ PATHS = {
|
||||||
'p2p': KeyInfo(can_disable=True),
|
'p2p': KeyInfo(can_disable=True),
|
||||||
'packet-mark': KeyInfo(can_disable=True),
|
'packet-mark': KeyInfo(can_disable=True),
|
||||||
'packet-size': KeyInfo(can_disable=True),
|
'packet-size': KeyInfo(can_disable=True),
|
||||||
'passthrough': KeyInfo(can_disable=True),
|
|
||||||
'per-connection-classifier': KeyInfo(can_disable=True),
|
'per-connection-classifier': KeyInfo(can_disable=True),
|
||||||
'port': KeyInfo(can_disable=True),
|
'port': KeyInfo(can_disable=True),
|
||||||
'priority': KeyInfo(can_disable=True),
|
'priority': KeyInfo(can_disable=True),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue