Skip to content

Commit

Permalink
fw support floating 'all' interface rule
Browse files Browse the repository at this point in the history
Add support for 'All' interface when creating floating firewall rule
  • Loading branch information
GuideGlyph authored and opoplawski committed Dec 19, 2023
1 parent 1334ca5 commit 6ed913c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/module_utils/rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,10 @@ def _parse_floating_interfaces(self, interfaces):
""" validate param interface field when floating is true """
res = []
for interface in interfaces.split(','):
res.append(self.pfsense.parse_interface(interface))
if interface.capitalize() == 'Any':
res.append(interface)
else:
res.append(self.pfsense.parse_interface(interface))
self._floating_interfaces = interfaces
return ','.join(res)

Expand Down

0 comments on commit 6ed913c

Please sign in to comment.