mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-06-22 18:03:34 +02:00
Fixes #236: Add missing parameters for the "ip firewall" subpaths and set the default value for the "disabled" parameter for most paths (#237)
* Fixes #236: Add missing parameters The parameters "address-list", "address-list-timeout", and "realm" were missing for some subpaths of "ip firewall" and are now added. Additionally the default value of "False" for the "disabled" parameter has been set so that an e.g. firewall rule, which was disabled (disabled=True) is enabled (disabled=False) after removing the "disabled" argument in the data. Some more parameters can now be removed, e.g. "jump-target", "log", and "log-prefix", which are not mandatory. * Add missing changes for #236 Additionally fixed the PR id in the changelog fragment. * Update changelogs/fragments/237-add-missing-ip-firewall-attributes.yml Full stop added at the end of the changelog fragment Co-authored-by: Felix Fontein <felix@fontein.de> * Update changelogs/fragments/237-add-missing-ip-firewall-attributes.yml Full stop added at the end of the changelog fragment Co-authored-by: Felix Fontein <felix@fontein.de> * Fix unit tests --------- Co-authored-by: Johannes Münch <git@washiza.eu> Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
7de154e907
commit
ad6faf275d
4 changed files with 59 additions and 34 deletions
|
@ -198,6 +198,8 @@ class TestRouterosApiInfoModule(ModuleTestCase):
|
|||
'chain': 'input',
|
||||
'in-interface-list': 'LAN',
|
||||
'!action': None,
|
||||
'!address-list': None,
|
||||
'!address-list-timeout': None,
|
||||
'!comment': None,
|
||||
'!connection-bytes': None,
|
||||
'!connection-limit': None,
|
||||
|
@ -243,6 +245,7 @@ class TestRouterosApiInfoModule(ModuleTestCase):
|
|||
'!protocol': None,
|
||||
'!psd': None,
|
||||
'!random': None,
|
||||
'!realm': None,
|
||||
'!reject-with': None,
|
||||
'!routing-mark': None,
|
||||
'!routing-table': None,
|
||||
|
@ -284,6 +287,8 @@ class TestRouterosApiInfoModule(ModuleTestCase):
|
|||
'chain': 'input',
|
||||
'in-interface-list': 'LAN',
|
||||
'action': None,
|
||||
'address-list': None,
|
||||
'address-list-timeout': None,
|
||||
'comment': None,
|
||||
'connection-bytes': None,
|
||||
'connection-limit': None,
|
||||
|
@ -329,6 +334,7 @@ class TestRouterosApiInfoModule(ModuleTestCase):
|
|||
'protocol': None,
|
||||
'psd': None,
|
||||
'random': None,
|
||||
'realm': None,
|
||||
'reject-with': None,
|
||||
'routing-mark': None,
|
||||
'routing-table': None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue