Skip to content

Commit

Permalink
ufw: added support for vrrp protocol (#9582)
Browse files Browse the repository at this point in the history
* ufw: added support for vrrp protocol

* Add changelog fragment for (#9582)

* ufw: Add support for vrrp

Co-authored-by: Felix Fontein <felix@fontein.de>

* ufw: Add support for vrrp

Co-authored-by: Felix Fontein <felix@fontein.de>

* ufw: Add support for vrrp

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit c5cc949)
  • Loading branch information
Andrewb12505 authored and patchback[bot] committed Jan 21, 2025
1 parent a8a1c0a commit a01ce7c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/9582-add-support-for-vrrp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- ufw - add support for ``vrrp`` protocol (https://github.com/ansible-collections/community.general/issues/9562, https://github.com/ansible-collections/community.general/pull/9582).
5 changes: 3 additions & 2 deletions plugins/modules/ufw.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,9 @@
proto:
description:
- TCP/IP protocol.
- The value V(vrrp) is supported since community.general 10.3.0.
type: str
choices: [any, tcp, udp, ipv6, esp, ah, gre, igmp]
choices: [any, tcp, udp, ipv6, esp, ah, gre, igmp, vrrp]
aliases: [protocol]
name:
description:
Expand Down Expand Up @@ -341,7 +342,7 @@ def main():
from_port=dict(type='str'),
to_ip=dict(type='str', default='any', aliases=['dest', 'to']),
to_port=dict(type='str', aliases=['port']),
proto=dict(type='str', aliases=['protocol'], choices=['ah', 'any', 'esp', 'ipv6', 'tcp', 'udp', 'gre', 'igmp']),
proto=dict(type='str', aliases=['protocol'], choices=['ah', 'any', 'esp', 'ipv6', 'tcp', 'udp', 'gre', 'igmp', 'vrrp']),
name=dict(type='str', aliases=['app']),
comment=dict(type='str'),
),
Expand Down

0 comments on commit a01ce7c

Please sign in to comment.