Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change firewall recent.time to string as per VyOS 1.4 #313

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
4 changes: 2 additions & 2 deletions docs/vyos.vyos.vyos_firewall_rules_module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -813,13 +813,13 @@ Parameters
<b>time</b>
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">integer</span>
<span style="color: purple">text ("second", "minute", or "hour")</span>
</div>
</td>
<td>
</td>
<td>
<div>Source addresses seen in the last N seconds.</div>
<div>Source addresses seen in the last second/minute/hour.</div>
</td>
</tr>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,14 @@ def __init__(self, **kwargs):
"recent": {
"options": {
"count": {"type": "int"},
"time": {"type": "int"},
"time": {
"type": {
"choices": [
"second",
"minute",
"hour"
]
athiedeilluminate marked this conversation as resolved.
Show resolved Hide resolved
},
},
"type": "dict",
},
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/vyos_firewall_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@
type: int
time:
description:
- Source addresses seen in the last N seconds.
type: int
- Source addresses seen in the last second/minute/hour.
type: text ("second", "minute", or "hour")
athiedeilluminate marked this conversation as resolved.
Show resolved Hide resolved
source:
description:
- Source parameters.
Expand Down